Alright, the code im working on looks like this:

...
cin >> x;
cout << ":";
cin >> y;
...

and everything works fine, however when the user presses enter, it starts a new line, which ends up making everything looks wierd. Is there any way so that the user can press enter but the newline is not printed.

Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.