Hi all, me again,
I want to know how you can store whitespace in a string?
e.g.: "what a beautiful day"
my code doesn't seem to work..
Code:puts("Add a new question."); puts("Press [ENTER] at a new line when you are done."); while (count < MAXX && gets(libry[count].question) != NULL && libry[count].question[0] != '\0') { puts("Type the first answer."); scanf("%s", libry[count].answ); puts("Type the second answer."); scanf("%s", libry[count].answ1); puts("Give the right answer (A or B)"); scanf("%s", libry[count++].choice); while (getchar() != '\n') continue; if (count < MAXX) puts("Type your next question."); }



LinkBack URL
About LinkBacks


