This is a bit weird | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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***

24th Jan 2018, 11:56 PM
Shadow - avatar
2 ответов
+ 3
its weird, when i tried this: std::cout << "\nEnd\n" << std::endl; it worked so it seems its not a mistake:
25th Jan 2018, 2:30 AM
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 - avatar