moreStudents = 'Y';
while(moreStudents == 'Y' || moreStudents == 'y'){
would be my suggestion. Put the brackets where you want it to repeat, then it will exit when the user doesn't press Y or...
Type: Posts; User: Enkid
moreStudents = 'Y';
while(moreStudents == 'Y' || moreStudents == 'y'){
would be my suggestion. Put the brackets where you want it to repeat, then it will exit when the user doesn't press Y or...
Why do you need the second if statement? If they don't say yes, why would you want to continue? Just put while before the first printf, and declare morestudents = 'Y'. Then leave the report summary...
lol, I'm working on a similar problem right now.
cukic?
You could put a while loop right after the declarations for the code and have the if statemvent for 's' set an int to one with an else attached to it that will set the int to 0. The int can then be...
Could the data member being poorly allocated or buffer overflow cause this to get caught in an infinite loop? Here's the declaration and the allocation:
struct listNode { /* self-referential...
I changed the 0 to NULL, and added the following:
if(feof(fPtr))
break;
at the beginning of the loop and it still gets stuck in an infinite loop.
I'm using the following code in order to order to split up a file into a linked list filled with words and several paragraphs. My question is that it seems that my while loop doesn't seem to be...
Thank you very very much, taht was the information I was looking for.
I realize that, so, how to I fix the fact that it says I need objbase.h? Is there a different version of DirectX that I need to get or something? How do I get the objbase header?
Hi, I'm starting to get interested in designing graphical games. I am using Visual C++ .Net 2005 Express. The problem I am having is that when I compile my code, I get an error that it can't find...