Answer the question
In order to leave comments, you need to log in
What does this line do in C++ classes?
There is a class describing a group of students
class Student
{
char name[50];
char fam[50];
int age;
char specializ[50];
public:
void Show()
{
cout<<"Фамилия: "<<fam<<endl;
cout<<"Имя: "<<name<<endl;
cout<<"Специализация: "<<specializ<<endl;
cout<<"Возраст: "<<age<<endl;
}
void Inpfam()
{
cout<<"Введите фамилию студента: \n";
gets(fam);
OemToCharA(fam,fam);
}
void Inpname()
{
cout<<"Введите имя студента: \n";
gets(name);
OemToCharA(name,name);
}
void Inpage()
{
cout<<"Введите возраст: \n";
cin>>age;
cin.ignore(1);
}
void Inpspecializ()
{
cout<<"Введите специализацию: \n";
gets(specializ);
OemToCharA(specializ,specializ);
}
};
Student obj[100];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question