#STUDENT RESPONSE ANI3-B
12-Mar-95 09:20:19
Sb: #158242-#STUDENT RESPONSE ANI3-B
Fm: Jack S. Winberg 71513,1522
To: NAAUG 73204,3522
Hi Jerry,
I tried modifying my program as you suggested, to:
//..Begining of program..
main()
{
char fname[]="Jack";
char lname[]="Winberg";
char say[]="What is your first name?";
char say2[]="What is your last name?";
int bsize=sizeof(fname);
int bsize2=sizeof(lname);
Qstring(fname,bsize, say);
Qtext("Press to continue…");
Qstring(lname,bsize2,say2);
Qtext(Press to continue…");
printf("%s,%s",fname,bsize);
Qtext("Press to continue…");
unprintf();
printf("%s,%s",lname,bsize2);
Qtext("Press to continue…");
unprintf();
}
//..Program ends..
I now get the error message "Error, near line 18, strings cannot span lines
without continuation (\). That has usually meant an error, but I cannot spot
it. Help, please.
Also a few more general questions – I get the need for the formatting sections
in printf(), but the use of quotes ("") confuses me. I thought that was used
to denote string literals.
In addition, I find the POCO manual hard to comprehend. Can you recommend any
other reference that may be somewhat more clear to a beginner. I have some
books on QuickC, but fear that the syntax may be a very different animal than
that used in POCO. Any suggestions?
Thanks, as usual….Jack.