#include <iostream>
#include <fstream>
#include "Teacher.h"
using namespace std;// syntax error : missing ';' before 'PCH creation point'
teacher::teacher(int tid,int cid,char *teachname)
{
this->tid=tid;
this->cid=cid;
strcpy(this->teachname,teachname);
}
void teacher::setTeacherId(int tid){this->tid=tid;}
int teacher::getTeacherId(){return tid;}
void teacher::setCourseId(int cid){this->cid=cid;}
int teacher::getCourseId(){return cid;}
void teacher::setTeacherName(char *teachname){strcpy(this->teachname,teachname);}
void teacher::getTeacherName(char *teachname){strcpy(teachname,this->teachname);}
WondererAbu 0 Newbie Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.