there are many header file but the main commonly used are
<stdio.h>
<conio.h>
these header file are for C language




[email protected]
http://www.mastmaza.weebly.com
+923342146848





To: [email protected]
From: [email protected]
Date: Sun, 24 Jan 2010 16:32:04 -0800
Subject: Re: [c-prog] .cpp and header file problem


















 



  


    
      
      
      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]






    
     

    
    






                                          
_________________________________________________________________
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010

[Non-text portions of this message have been removed]



------------------------------------

To unsubscribe, send a blank message to 
<mailto:[email protected]>.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to