Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
31415097yAre you doing some terminal magic in the text output? The default output thingy is rather limited in comparison to a full-blown terminal.
-
Sometimes cerr and cout don't flush when you'd expect them to. Try switching all of your cerr to cout so that all of your writes get written and flushed sequentially.
As a second option, assuming that both err and out flush on newline characters, make sure that you end all of your writes with new line characters! -
@VirtualProtect i jst tested it... It actually worked... Cant believe i didnt think of that when it was right in front of me all the time haha thanks a lot 😉😅😊
-
@Electrux glad to help! It sounded very familiar to something I experienced a while back so I thought I'd share my solution!
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Ok idk about anyone else but m facing this weird thing with CLion now...
When i run the program... It freaking shows output in RANDOM manner!!!
Like seriously, the lines which shud b output sequencially r all jumbled up!! I ran it on terminal and it works correctly...
Quite weird for something like this to happen on CLion
Btw... Other than this, i really love CLion now... Its awesome!
undefined
jetbrains
c++
clion