Finding Average. Trying to find the average of the numbers in string below. This is what I have so far

# include<iostream>
# include<fstream>
# include<string>
# include<iomanip>



using namespace std;

using std::cin;
using std::cout;
using std::endl;
int main()
{

while (infile >> name[i])
{
for (int j = 0; j < 5; j++)
infile >> scores[i][j];
i++;
}


int main(int argc, char* argv[])

int grades = 4;

int* grades;

string (100,90,76,78.5);
cout << argv "string" << endl;

cout << "please enter grades" < endl;

cin>>avrg

System "pause"

return 0;


}
Could you use code tags? Also, what is the problem you are having?
I just wanted to know if it looked right. Also i don't know what code tags are
http://www.cplusplus.com/articles/z13hAqkS/

It doesn't look like it compiles, much less finds an average. You should read the errors the compiler gives you and try to fix those.
Topic archived. No new replies allowed.