Library project | Sololearn: Learn to code for FREE!

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

5/1/2021 12:29:20 AM

Koloroj

2 Answers

New Answer

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.

0

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