# include
G: : G (string n, string c) {}
Void: G: setGradebookname (string n) {name=n;
}
String: G: getGradebookname () {
return name; }
Void: G: setGradebookcourage (string) c {
Courage=c; }
String: G: getGradebookcourage () {
Return courage; }
# pragma once
# include
using namespace std;
The class G
{
Public: G (string n, string c) {}
Void setGradebookname (string n) {
}
String getGradebookname () {
}
Void setGradebookcourage (string) c {
}
String getGradebookcourage () {
}
Private: string name, courage;
};
# include
using namespace std;
# include "we", "
Int main () {
string name; String courage;
G G (name, courage);
cout<" Welcome to the registration center "& lt; <" \ n ";
cout<" Please enter the teacher's name: "& lt; <" \ n ";
Cin> Name> & gt;" \ n ";
cout<" Please enter the class name "& lt; <" \ n ";
Cin> Courage> & gt;" \ n ";
cout<" Thank you for your cooperation I wish you a happy learning ";
}