[ create a new paste ] login | about

Link: http://codepad.org/pqgIleTx    [ raw code | output | fork ]

C++, pasted on May 26:
#ifndef TEACHER_H
#define TEACHER_H
#include "defines.h"
#include <iostream>
class CTeacher
{
    double m_dSalary;
    char *m_pName;
    int m_nID;
public:
    CTeacher();
    CTeacher(const CTeacher& input);
    CTeacher(double salary);
    ~CTeacher();

    double GetSalary();
    void GetName(char pName[]);
    void SetName(char pName[]);
    void SetID(int nID);

    int GetID() {return m_nID; }
    void SetSalary(double input) {m_dSalary = input;}

    CTeacher& operator=(const CTeacher &input);

    friend std::ostream& operator<<(std::ostream& os,
                               const CTeacher& input);
    friend std::istream& operator>>(std::istream& is, CTeacher &input);
    friend bool operator==(const CTeacher& lhs, const CTeacher &rhs);
    friend bool operator!=(const CTeacher& lhs, const CTeacher &rhs);
};


#endif


Output:
1
Line 20: error: defines.h: No such file or directory


Create a new paste based on this one


Comments: