+ 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
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
+ 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...