Cin Problem EASY.. HELP

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
1
2
3
char c;
cout << "Rectangle: Please enter width and length:";
cin >> r.width >> c >> r.length;
Topic archived. No new replies allowed.