I started out the class period trying to fix my simple switch program. I was, for the most part, unsuccessful, though I did come up with a momentary explanation. The problem is that the message displayed doesn't appear on the screen after the case is activated, with the exception of a few times. What I think is going on is that the program has already registered the message from previous attempts so the time it takes to display and the time it takes to close the program is so small that the message doesn't appear. Whenever I change the code, the message comes up for a brief moment, then the program closes. That is the other problem, I can't seem to get the program to pause, but that's the least of my worries right now.
I moved on to pointers for the sake of keeping up with Max. Basically, I know what pointers are and how they work, but I don't know how to use them in an actual program. This seems to happen a lot. I understand what the code does, but I can't get it to function properly. I must say it is a pain.
Friday, February 8, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
If you are doing your program just in console mode, to make the window stop and wait for the user to see the message you can just right
System ("PAUSE");
after your message code so that your screen would stay and wait for the user to "press any key to continue".
Ok, thank you. I knew there was a way to pause, but I didn't know how the exact code was.
Post a Comment