Define the class Student which has name (char name[20]) and age(int). Define the default constructor, member functions get_data() for taking the name and age of the Student, print() for displaying the data of Student.
i hv tried it.. am new to this language, am learning, this is what i had done.. will you plz help me out.. :(
class Student
{
public:
void getData(string& name, int& age);
Student(string name, int age);
void print(void);
private:
char m_name[20];
int m_age;
}