Re: CMPT 212 Assignment 4
Hua Zhu (hzhua@cs.sfu.ca)
Thu, 27 Nov 1997 21:01:20 -0800 (PST)
Using sprintf function, you can do this job.
Hua
> From kluck@sfu.ca Thu Nov 27 20:34:42 1997
> Date: Thu, 27 Nov 1997 20:34:24 -0800 (PST)
> From: Katty Maria Luck <kluck@sfu.ca>
> X-Sender: kluck@fraser
> To: Yihang Tang <DeathMaster@NastyThing.com>
> cc: David Simpson <simpson@cs.sfu.ca>, cmpt-212@sfu.ca
> Subject: Re: CMPT 212 Assignment 4
> MIME-Version: 1.0
>
> I'm wondering the same.
>
> --------------------------------------------------------------------------
> Katty M. Luck
> E-mail: kluck@sfu.ca
> Simon Fraser University, BC, Canada
> http://www.geocities.com/tokyo/1811
> icq UIN: 2238119
> ---------------------------------------------------------------------------
>
>
> On Thu, 27 Nov 1997, Yihang Tang wrote:
>
> > Hi there,
> >
> > I'm having some trouble with the display function in student, instructor and
> > programmer classes.
> >
> > void display(char *);
> > This function is passed a pointer to a
> > character string, and the function writes the
> > information about the person into that string.
> > The format of the information can be seen
> > in the sample program: in the display of people
> > in the list, each line is the string returned
> > by this function.
> >
> > As stated above, display function in student class should return a string
> > like "STUDENT: Yihang Tang(CMPT)", right? How can I append several strings
> > into one single string? Any predefined function in string.h will do this
> > job?
> >
> > Thanks for your help.
> >
> > Regards,
> >
> > Yihang
> >
> >
>
>