I have just started programming, and am writing a program to find the slope of a line, among other things. The code itself works fine, but it would be even better if I could put in numbers in the form (x,y). When I type cout<<"(";, then cin>>x;, I see ((my value for x. But when I go to the next line to put cout<<",";, the cursor goes to another line. Is there a way to prevent that?



LinkBack URL
About LinkBacks



, then tell the user to input everything on one line in the form "#,#".