Hi, I'm trying to make a program that lets the user input one phrase each time and goes counting the number of phrases written, after each phrase it will ask if the person wants to continue writing/counting.. I'm using Borland(I'm aware that it's outdated unfortunately that's what my teacher is asking me to use)..
My problem is that I noticed when I input something with spaces the program closes.. so I tried using getline(cin,x) but I got error: "Call to undefined function 'getline'".. I'm not sure how I can make it receive a full phrase without it stopping.
Enter input: sdfsdf sd fs dfs d
Entered "sdfsdf sd fs dfs d"
Press any key to continue . . .
I have no idea why your teacher would be asking you to use that... There are far better options. Heck, you can get Code::Blocks with a standards-compliant (or almost compliant) compiler on pretty much every platform I can think of.