Library project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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? https://code.sololearn.com/cA20a258a7a8/?ref=app

1st May 2021, 12:29 AM
Koloroj
2 Answers
0
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.
1st May 2021, 4:04 PM
Mark
0
Mark oh yeah, I already tried the Online GDB Compiler, which takes input as a program runs. Still loops.
1st May 2021, 11:46 PM
Koloroj