Search:
Forum
General C++ Programming
Cin Problem EASY.. HELP
Cin Problem EASY.. HELP
Mar 14, 2011 at 12:18am UTC
closed account (
DN35fSEw
)
I am trying to separate input by a comma
cout << "Rectangle: Please enter width and length: " ;
cin >> r.width , r.length; //ERROR <<<<<
Example:
Rectangle: Please enter width and length: 6, 6.34
HELP
thanks
Last edited on
Mar 14, 2011 at 12:19am UTC
Mar 14, 2011 at 12:21am UTC
PiMaster
(359)
1
2
3
char
c; cout <<
"Rectangle: Please enter width and length:"
; cin >> r.width >> c >> r.length;
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs