Sunday, August 2, 2009

Hi............can anyone plz answer the following question as soon as possible...i am really stuck up !!!!?

This question is to be written in C++.........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 jus have 1 week left...........plz answer and guide me how to do it!!!!!!!

Hi............can anyone plz answer the following question as soon as possible...i am really stuck up !!!!?
73. just dance a bunch
Reply:I bet you wish you paid more attention at the start of the school year. Anyway, here is the class definition. You just have to implement the methods.





class Student


{


public:


void getData(string%26amp; name, int%26amp; age);


Student(string name, int age);


void print(void);


private:


char m_name[20];


int m_age;


}
Reply:well i think this is not the place where you ask other ppl to do your home work and you are just copy paste it and submit the assignment to your teacher...





you better be try it, read the books related to object oriented programming in c++. There is lots of books are exist around in local market and internet.





bye


No comments:

Post a Comment