Student.h File // just Definition
#ifndef _STUDENT
#define _STUDENT
class student{
public:
student();
void read(istream &);
void print();
void displayHeader();
double aveFunction();
void display_ave(double);
double highestAve(double, double);
void display_ave1(double);
double lowestAve(double, double);
private:
string name;
string ss; //social security
double grade[4];
char gradeFunction(double);
bool distinction(double);
double highest();
double lowest();
double range(double , double);
};
#endif
Student.cpp File // Implementation here
#include "Student.h"
student::student() { // write implementation }
student::read(istream & in) { // write implementation }
student::print() { // write implementation }
student::displayHeader() { // write implementation }
double student::aveFunction() { // write implementation return 0.0; }
student::display_ave(double avg) { // write implementation }
double student::highestAve(double a, double b) { // write implementation
return 0.0;}
student::display_ave1(double ave1) { // write implementation }
double student::lowestAve(double a, double b) { // write implementation
return 0.0;}
Best,
Tapan Gajera
Stevens Institute of Technology
Hoboken, NJ-07030
Mob. +1(313) 401-9647
Mail [email protected]
________________________________
From: Jimmy Johnson <[email protected]>
To: [email protected]
Sent: Sun, January 24, 2010 7:21:14 PM
Subject: [c-prog] .cpp and header file problem
Been all over the web and people seem to mix c and c++ so can't find this
answer.
What is the formate for a cpp file and its corresponding header?
thanks,
jjj
[Non-text portions of this message have been removed]