User forums > Help
Code only compiles some of time
stahta01:
You need to learn how to post the full rebuild log; and ask the questions that are not valid on this site on another site.
That site should be one the supports either the programming Language, the Compiler, or the software Library being used.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Note: I only remember reading your last post; so, I have no idea if your issue is valid or not for this site.
For another site to look at I suggest this one http://cboard.cprogramming.com/
Tim S.
oBFusCATed:
--- Quote from: C0UG3R on January 25, 2015, 10:06:40 am ---When program is run nothing shows up. Not even "Hi" at begin of code.
When I remove parts of code "Hi" shows up. It seem to cause problem when opening of file first starts in function.
--- End quote ---
This happens because the std::cout is buffered and doesn't flush the buffers to the output device.
Read the iostream documentation to understand how to flush the buffers. Hint use std::endl;
C0UG3R:
Thank for all the replies. The code was for a friend but he die so I do not need anymore.
Bye.
Navigation
[0] Message Index
[*] Previous page
Go to full version