- 2

Alternatives to cin? Please include library name

I need alternatives to the <iostream> std cin It only detects the first word of your sentence, and that's bad. Please also give examples on how to use it

3rd Dec 2017, 7:55 PM
thebbcismymain
3 odpowiedzi
3rd Dec 2017, 8:00 PM
Manual
Manual - avatar
+ 1
Here are two C functions that work like cin and its members... scanf() - www.cplusplus.com/reference/cstdio/scanf gets() - www.cplusplus.com/reference/cstdio/gets // Reads only strings. Perhaps you know them already...
4th Dec 2017, 5:57 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 1
Sorry for the late response, but I tried getline, and it worked! Thanks, Manual!
4th Dec 2017, 4:16 PM
thebbcismymain