I got the answer already.  It was a silly syntax error. thanks.

--- In [email protected], Tapan Gajera <tapan_16...@...> wrote:
>
> Hi Jimmy,
> 
> Can you please elaborate the question?
> do you want to return something from constructor? then it's not possible as 
> constructor does not have any return type.
> 
> Best Regards,
> 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 8:09:51 PM
> Subject: [c-prog] Re: .cpp and header file problem
> 
>   
> 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 c-p...@yahoogroups. com, Tapan Gajera <tapan_16_86@ ...> 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::displayHea der() { // write implementation }
> > double student::aveFunctio n() { // 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_86@ ...
> > 
> > 
> > 
> > 
> > ____________ _________ _________ __
> > From: Jimmy Johnson <boxer41a@ .>
> > To: c-p...@yahoogroups. com
> > 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]
> >
> 
> 
>  
> 
> 
>       
> 
> [Non-text portions of this message have been removed]
>


Reply via email to