I need help with this because it's time for my project(this is the first program from my project) and I'm having difficulties cause we never really worked with files in school..
Basically, I have to make a program that writes objects from a class to a file.
I created the class, but am a tad clueless as to how I should proceed with the writing..
Now there's a different problem - when you enter the details of a song, the program gets bugged when you use an interval like if for example the song is Bohemian Rhapsody, it bugs messes up the writing to the text.
Change all your input operations from std::cin >> ... to std::getline( std::cin, ... ).
It is easier if you don't mix formatted input with unformatted input.