I'm having trouble writing it out. To write it out I have this:
cout << States [row] << AdmNum [row];
The code for opening and closing the file is this:
Type: Posts; User: Vulpecula
I'm having trouble writing it out. To write it out I have this:
cout << States [row] << AdmNum [row];
The code for opening and closing the file is this:
I opened and read a file in a program that I am working on. I have the following informantion in the file:
string intstring intstring intstring intstring intstring
int string intstring...
I guess the easiest way to do this was using the ignore after reading what I wanted to keep from the file. I tried it this way and it worked.
I've searched the web for ways to ignore data in specific colums of a text file. I found a way or two but they didn't seem to make much sense to me. So my question is, what would be the best way to...
Great! Thanks for pointing that out. I was in fact missing the sum formula inside the for loop and needed curly braces for that as well.
Are you saying I still need to use all for loops even after merging?
I'm having trouble incorporating this for loop:
double sum;
for (int row= 0; row < i; row ++)
{
cout << Names[row] << " ";
int col=0;
I'm aware that it should be doing it for me, however, I was receiving an error/warning (don't recall which) that said that it could not be converted. I compiled my program again and it shows zero...
Yes, I have the code to calculate the average. So far it looks like this:
double sum;
for (int row =0; row < i; row++) //For each student, calculate the average score. Average for each...
Hi everyone,
I'm currently working on a program that will give me the averages of scores and stores them into a one-dimensional arrray. I'm having trouble in regards to where I should be putting...