Console program doesn't work occasionally?
Occasionally, usually right after I compile a program and run it, the values my console prints out are wrong. The odd thing is, even 开发者_Python百科though I don't change anything to the code, after I compile and run it again, it works fine. This happens for all of my programs. Each one takes in a user input and prints out a line after manipulating some data using the input. This only happens on occasion when I first compile a program. It wouldn't normally be a huge problem but I'm entering my program for a local competition and I can't have it malfunctioning when they run it. Anyone know why this might be happening and how I can fix it?
Using Codeblocks 8.02 with GCC. Running Linux Mint 9 64-bit if it matters at all.
This has happened to me also. When coding in C. But I was using MS Visual Studio. There in the solution I selected to clean the solution, so that any temp files of previous versions will go off.
But to provide a clear answer please upload your coding here. Because it is not clear what's your problem is. Good Luck
精彩评论