hi this is the code that i have but i seem to have 2 errors and i dont understand were they are so can some one please help me. thanks
this is the code
#include<iostre am.h>
#include<conio. h>
struct faculty
{
char fact1;
char fact2;
char fact3;
};
struct dean
{
char dean1;
char dean2;
char dean3;
};
struct seniorlecture
{
char seniorlec1;
char seniorlec2;
char seniorlec3;
};
struct secretary
{
char sec1;
};
void main()
{
faculty uni;
dean uni2;
seniorlecture uni3;
secretary uni4;
uni.fact1='busi ness';
uni.fact2='law' ;
uni.fact3='engi neering';
uni2.dean1='joh n';
uni2.dean2='sar a';
uni2.dean3='jan e';
uni3.seniorlec1 ='sam';
uni3.seniorlec2 ='pat';
uni3.seniorlec3 ='tom';
uni4.sec1='kate ';
cout<< "Faculty is:"<<uni.fact1 <<endl;
cout<< "Dean of department is:"<<uni2.dean 1<<endl;
cout<< "Senior lecture of department is:"<<uni3.seni orlec1<<endl;
cout<< "Secretary of department is:"<<uni4.sec1 <<endl;
cout<< "Faculty is:"<<uni.fact2 <<endl;
cout<< "Dean of department is:"<<uni2.dean 2<<endl;
cout<< "Senior lecture of department is:"<<uni3.seni orlec2<<endl;
cout<< "Secretary of department is:"<<uni4.sec1 <<endl;
cout<< "Faculty is:"<<uni.fact3 <<endl;
cout<< "Dean of department is:"<<uni2.dean 3<<endl;
cout<< "Senior lecture of department is:"<<uni3.seni orlec3<<endl;
cout<< "Secretary of department is:"<<uni4.sec1 <<endl;
}
getche();
and this is the error message that i have
[too many characters in constant]