#include <iostream>
#include <fstream>
#include <string>
usingnamespace std;
class Student
{
private:
string name, surname, number;
public:
};
class Classroom
{
public:
string className; //when a new class is created, this variable should randomly add value like 2D 5A.
Student students[100]; //max 100 student
void addStudent()
{
}
void delStudent()
{
}
};
class School
{
public:
School() // this func will read the class and student information in the regs.txt file and store them in a class array
{
}
void print() //it will print all classes and students in the school to the regs.txt file.
/*
regs.txt format:
1C ------> Classroom name
3 -------> number of students in class
Catlin HENDERSON 100
Tessy BARNETT 101
Toma RICE 102
*/
{
}
};
class Program
{
School school;
void run() // It will display the class and the students with the method that the school object wrote. The user will release the menu. ask the user to choose.
{
}
};
int main()
{
Program prog;
prog.run();
}
}
#include <iostream>
#include <fstream>
#include <string>
usingnamespace std;
class Student
{
private:
string name, surname, number;
public:
};
class Classroom
{
private:
staticint count;
public:
string className; //when a new class is created, this variable should randomly add value like 2D 5A.
Student students[100]; //max 100 student
void addStudent(Student stu)
{
students[count] = stu;
count++;
}
void delStudent()
{
}
};
class School
{
public:
School() // this func will read the class and student information in the regs.txt file and store them in a class array
{
}
void print() //it will print all classes and students in the school to the regs.txt file.
/*
regs.txt format:
1C ------> Classroom name
3 -------> number of students in class
Catlin HENDERSON 100
Tessy BARNETT 101
Toma RICE 102
*/
{
}
};
class Program
{
public:
School school;
void run()
{
}
};
int Classroom::count = 0;
int main()
{
Program prog;
prog.run();
}
#include <iostream>
#include <fstream>
#include <string>
usingnamespace std;
class Student
{
private:
string name, surname, number;
public:
};
class Classroom
{
private:
staticint count;
public:
string className; //when a new class is created, this variable should randomly add value like 2D 5A.
Student students[100]; //max 100 student
void addStudent(Student stu)
{
students[count] = stu;
count++;
}
void delStudent()
{
}
};
class School
{
public:
School() // this func will read the class and student information in the regs.txt file and store them in a class array
{
}
void print() //it will print all classes and students in the school to the regs.txt file.
/*
regs.txt format:
1C ------> Classroom name
3 -------> number of students in class
Catlin HENDERSON 100
Tessy BARNETT 101
Toma RICE 102
*/
{
}
};
class Program
{
public:
School school;
void run()
{
}
};
int Classroom::count = 0;
int main()
{
Program prog;
prog.run();
return 0;
}