English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Class Kids{
protected:
String name;
int age;
bool height;
void Reg();
void disp();
};
my program will contain the fallowing functions:
1) write a function called Reg() . this function will register names and agas of the children and save them into a array of object
2) write function move() which will move the girls from the main arrayof objects into a new link list. The new class, called Girls , will be inhereted from the Kids class. Derivation will be public.
3) write function disp() to d,splay the names, ages , and the genders of the children.
4) write a main()function with a menu for invoking other fucktions .
Please help me i dont write programs for a year so i cant remember what to do .

2006-10-01 07:11:56 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

choose a variable of class kids.
use scanf for input

to reach the elements of class use dot connection
classvariable.age[n]
classvariable.name[0][n]

to declare function use

void Reg() {


}

2006-10-01 07:25:46 · answer #1 · answered by iyiogrenci 6 · 0 0

fedest.com, questions and answers