as soon as i type 10 for apples and press Enter, the cursor automatically goes down to the next line...so i can't enter them side by side. my assignment requires that they appear side by side though.
Type: Posts; User: beachbum58
as soon as i type 10 for apples and press Enter, the cursor automatically goes down to the next line...so i can't enter them side by side. my assignment requires that they appear side by side though.
in my program i'm asking the user to enter how many of each fruit they are buying. my problem is i want what they enter to be printed across instead of down. is there any way i can do that?
please help! i am VERY new at this. why are the cout statements printing horizontally and the cin statements printing vertically?
here is my code for this part:
cout << "apples\t" << "bananas\t"...