Hello all, I've been lurking on this forum for about a month or so as I've been learning C++ and you have all be a wealth of information here. I finally got stumped enough that I needed some help.
I'm trying to create a program that will take user input and put it into a CSV file. While doing so I got everything to work, except I want the program to put each user input into a column rather than down the first row. Here's what I have so far:
I apologize if this is completely stupid but I don't quite follow what you mean.
I tried putting everything to "\n" instead of endl and that didn't change anything.
Now I will say, and again, dealing with csv is new to me as is FileStream so I apologize if I'm completely ignorant here but I'm not sure where to use the FileStream code you gave me above. If you can tell me where to use it that'd be great.
The '\n' is basically the same as endl, although endl does also flush the output buffer. If you don't want everything on it's own line, don't print this new line character (endl/ '\n').