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<iostream.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='business';
uni.fact2='law';
uni.fact3='engineering';
uni2.dean1='john';
uni2.dean2='sara';
uni2.dean3='jane';
uni3.seniorlec1='sam';
uni3.seniorlec2='pat';
uni3.seniorlec3='tom';
uni4.sec1='kate';
cout<< "Faculty is:"<<uni.fact1<<endl;
cout<< "Dean of department is:"<<uni2.dean1<<endl;
cout<< "Senior lecture of department is:"<<uni3.seniorlec1<<endl;
cout<< "Secretary of department is:"<<uni4.sec1<<endl;
cout<< "Faculty is:"<<uni.fact2<<endl;
cout<< "Dean of department is:"<<uni2.dean2<<endl;
cout<< "Senior lecture of department is:"<<uni3.seniorlec2<<endl;
cout<< "Secretary of department is:"<<uni4.sec1<<endl;
cout<< "Faculty is:"<<uni.fact3<<endl;
cout<< "Dean of department is:"<<uni2.dean3<<endl;
cout<< "Senior lecture of department is:"<<uni3.seniorlec3<<endl;
cout<< "Secretary of department is:"<<uni4.sec1<<endl;
}
getche();
and this is the error message that i have
[too many characters in constant]