Cant Get Code Work Tell Trying Get Show Grades Also Students Include Include Include Inclu Q37090034

i cant get my code to work can you tell me out why

i am trying to get to show the grades and also thestudents
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
using namespace std;

ifstream ing;
ifstream inn;
ofstream out;

const int row = 10;
const int col = 7;

void readdata(string stname[row], int stgrade[row][col]);
void sttotal(int stgrade[row][col], int total[row]);
void displaydata(string stname[row], int stgrade[row][col], inttotal[row]);
void staverage(int total[row], double average[row]);

int main()
{
   string stn[row] = {};
   int stg[row][col] = { { 15 },{ 95 } };
   int ttl[row] = { 25 };
   double sta[row] = {0.0};

   readdata(stn, stg);
   sttotal(stg, ttl);
   displaydata(stn, stg, ttl);

   inn.close();
   ing.close();
   out.close();

   return 0;
}

void readdata(string stname[row], int stgrade[row][col])
{

   inn.open(“stnames.txt”);
  

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.