identifier problems

hi all,

i've this program which is not working and the output give me the following errors, i though that the function prototypes will have solved this problem. Please i'm looking forward for any ideas;
error C2065: 'prnt' : undeclared identifier
error C2563: mismatch in formal parameter list
error C2568: unable to resolve function overload
error C3861: 'process': identifier not found
error C3861: 'computeAvr': identifier not found
error C3861: 'prnDetail': identifier not found
6 error(s),

#include "stdafx.h"
#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;



//---------------------- FUNCTION PROTOTYPES -----------------------------

void OpenFile(void); // open grade file
void PrnHeadings(void); // print headings
void ProcessLoop(void); // processing loop
void InputRecord(void); // input grade record
void ComputeAvr(void); // compute grade average
void PrnDetail(void); // print detail line
//---------------------- PROGRAM SETUP ----------------------------------

//** H E A D I N G L I N E S

char PT1[] = " S I X W E E K G R A D E R E P O R T";
char HL1[] = " student T e s t S c o r e s Average";
char HL2[] = "------------------------------------------";

//** I N P U T G R A D E R E C O R D

ifstream gradeFile; // file object name
char student[16]; // student name
int grade1; // 1st week grade
int grade2; // 2nd week grade
int grade3; // 3rd week grade
int grade4; // 4th week grade
int grade5; // 5th week grade
int grade6; // 6th week grade


//** P R O G R A M V A R I A B L E S

float gradeTotal; // grade total
float gradeAvr; // grade average

//** O P E N P R I N T E R F I L E

//----------------------------------------------------------------
// MAINLINE CONTROL
//----------------------------------------------------------------

int main()
{
OpenFile(); // open grade file
if (!gradeFile.fail())
{
PrnHeadings(); // print headings
ProcessLoop(); // processing loop
gradeFile.close(); // close grade file
}
cout << "\n--------< E N D OF R U N ------------";
return 0;
}
//----------------------------------------------------------------
// OPEN GRADE FILE
//---------------------------------------------------------------
void OpenFile(void)
{

gradeFile.open("f:\\grades.dat");
if (gradeFile.fail())
cout << "Grade file open failed" << endl;
return;
}
//---------------------------------------------------------------
// PRINT HEADINGS
//---------------------------------------------------------------
void PrnHeadings(void)
{
system("CLS"); // reset to top of page
prnt << PT1 << endl; // print page title 1
prnt << endl << endl; // tripple space
prnt << HL1 << endl; // print heading line 1
prnt << HL2 << endl; // print heading line 2
return;
}
//---------------------------------------------------------------
// PROCESSING LOOP
//---------------------------------------------------------------
void ProcessLoop(void)
{
InputRecord(); // input grade record
while (!gradeFile.eof())
process();
{
computeAvr(); // compute average grade
prnDetail(); // print detail line
InputRecord(); // input grade record
}
return;
}
//--------------------------------------------------------------
// INPUT GRADE RECORD
//--------------------------------------------------------------
void InputRecord(void)
{
gradeFile.get(student, 16)
>> grade1 >> grade2 >> grade3 >> grade4 >> grade5 >> grade6;
gradeFile.get(); // clear input file buffer
return;
}
//--------------------------------------------------------------
// COMPUTE GRADE AVERAGE
//---------------------------------------------------------------
void ComputeAvr(void)
{
gradeTotal = grade1 + grade2 + grade3 + grade4 + grade5 + grade6;
gradeAvr = gradeTotal / 6;
return;
}
//----------------------------------------------------------------
// PRINT DETAIL LINE
//----------------------------------------------------------------
void PrnDetail(void)
{
prnt << setw(15) << student << setw(4) << grade1
<< setw(4) << grade2 << setw(4) << grade3
<< setw(4) << grade4 << setw(4) << grade5
<< setw(40) << grade6 << setiosflags(ios::fixed)
<< setiosflags(ios::showpoint)
<< setw(10) << setprecision(2) << gradeAvr << endl;

return ;
}

Please i'm looking forward for any ideas;
error C2065: 'prnt' : undeclared identifier

You use a function called prnt but you haven't declared it.

If I had to guess, it's say you need to replace 'prnt' with 'cout'.
Topic archived. No new replies allowed.