Exemple #1
0
Student::Student(Student &student)
{
	SetName(student.GetName());
	SetSurname(student.GetSurname());
	SetGroup(student.GetGroup());
	SetAge(student.GetAge());
}
int main()
{
	Student stu;
	char line[200];
	gets(line);
	stu.Init(line);
	printf("%s,%d,%d,%d",stu.GetName().c_str(),stu.GetAge(),stu.GetId(),stu.Average());
	return 0;
}