Tiny problem with console prompt

Started by
3 comments, last by Shannon Barber 19 years, 7 months ago
Hello! I'm using Visual C++. Is there any way to read spaces from the command line with cin? I want to include the entire string, but cin divides the string between spaces. I tried turing off the skipws flag, but I get an assertion error. Any suggestions? Thanks.
Advertisement
cin.getline or getline(cin, line).
Thank you! Both functions works great!
You're welcome. [smile]
Not engineering related
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement