Library project | Sololearn: Learn to code for FREE!


Library project

I'm currently testing my skills in C++ by making a sort of library. Unfortunately, my functions don't work as expected (but I don't understand why) -- the functons tend to keep looping for some reason. Why does his happen and how can I fix this?

5/1/2021 12:29:20 AM


2 Answers

New Answer


Hi Koloroj Did you tried to compile and execute your code in a computer with a cpp compiler? If you only tried the sololearn code execution environment, than that is the problem. The input is non interactive. Another thing, I suggest you to use a vector of strings to manage your library titles.


Mark oh yeah, I already tried the Online GDB Compiler, which takes input as a program runs. Still loops.