Thanks, got it.  Now I want in the definition of a member function to call 
typeinfo to return the name of the current object type. in psudocode:

student::student() {
  cout << typeinfo(self).name

Can't seem to get there.



--- In [email protected], Tapan Gajera <tapan_16...@...> wrote:
>
> 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   tapan_16...@...
> 
> 
> 
> 
> ________________________________
> From: Jimmy Johnson <boxer...@...>
> 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]
>


Reply via email to