I am new to programming in C++ but I am currently trying to read a text file and then wanting to print it in the console. The text file is 500x2 where the first column is r and the second column is theta. When I build and run the program it. In the console, I would like it to print the values exactly how it is shown in the text file, that is:
0.005 3.1485
0.005 6.1749
etc.
Instead the data is printed out like this:
0.005 0.005
3.1485 3.1485
0.005 0.005
6.1749 6.1749
I have attached my...
Reading text file
0.005 3.1485
0.005 6.1749
etc.
Instead the data is printed out like this:
0.005 0.005
3.1485 3.1485
0.005 0.005
6.1749 6.1749
I have attached my...
Reading text file