+ 4

This is a bit weird

A rather stupid question, but this is the first time I encounter this: In my Linked List Implementation below the last statement is not printed to the console. Same happens if I uncomment the push_back() and printList() methods right before it. Can anyone explain me why this happens? ***I dont know what happens in an IDE though, need to try this later*** https://code.sololearn.com/cuFXA0A0CLX0/?ref=app

24th Jan 2018, 11:56 PM
Shadow
Shadow - avatar
5 Answers
+ 3
its weird, when i tried this: std::cout << "\nEnd\n" << std::endl; it worked so it seems its not a mistake: https://stackoverflow.com/questions/14858262/stdcout-wont-print
25th Jan 2018, 2:30 AM
capsloth
capsloth - avatar
+ 3
Ah, I see, thanks for the answer and tip, Gordie. I never had such a problem with Sololearn, so I was pretty confused. @kurwius, yes, you are right, I finally got to try it in an actual IDE instead of Sololearn's compiler, and it just errors at that point. Gonna have to do a review + rework there. Sorry for the downvote you got...
25th Jan 2018, 5:34 PM
Shadow
Shadow - avatar