Hello
When i use freopen(“CON”, “w”, stdout) my console gets… “messed up”,
Oddly i am able to resize the console like a normal window,
These things happen when i use conssole mode with the codeblocks “pause when execution ends” feature:
when i try to invoke a system pause and i press a key, and instead of making a newline, it just creates a strange character (which i cant identify) in the same line (it does resume processing tho). Another thing is that the execution never gets to the part where it pauses, so the console never disapears.
When i dont have the “pause when execution ends” feature, i cant even see the input being sent to the console :\
In a nutshell the thing is a mess :
I tried to solve it by adding #undef main at the begining of my main definition (of course) and that resolved the problem, but i dont know if that is healthy or not.
So what am i doing wrong here?
And is it safe to #undef main ?
Thanks for the atention