I mean there should be a space just after the colon, just as a have written in the code, but when I run this code there is no space after the colon, they kinda passes to the next string and are placed before the Price of the item and Quantity of the item. So when I run the code Price of the item and Quantity of the item are displaced and farther than Your item to buy. At stake overflow people say that this may be a problem with the terminal, but I don't know what to do with it, cause I don't even use a cmd in CLion
Your item to buy : foobar
Price of the item : 78.98
Quantity of the item : 9
Item : foobar
Price : 78.98
Quantity : 9
Total is : 710.82
If the issue still persists, it looks like it could be a sync issue between i/o streams. I'd raise it as an issue with Clion support. There may be a compile option etc needed to make sure the output stream is fully output before input.
PS. If you put after L15:
cout.flush();
does the same happen - or does the issue go away for the first display?
In cpp.sh everything works perfectly of course, so I can guess that this is a problem with CLion or something... Very strange ... :( Can't even imagine why can it be so