some qustion in classes

Pages: 12
fun2code, thank you for your reply, i already solve it, thank you
closed account (zb0S216C)
Sorry for being a bit snappy, fun2code; I've had an eventful day.

Wazzak
closed account (zb0S216C)
Empror, in the third program, something is missing and it begins with V. Also, the access-specifier is wrong.

Wazzak
closed account (D80DSL3A)
All is good. I probably shouldn't have invaded the thread, but it looked like he wasn't going to get it.
Hope today's events work out OK for you.
i solved the third programe. maybe you mean last programe right?

for second programe, i write this

students = new string[SIZE];

but still having problem haha

in problem 4 no idea, can you give me the answer?

this is to learn actually, i'm happy to slove 6 of 10, i really tried for remaining question but cannot, then i come here for getting some help and also see how the problem is solved! then i can learn more

really thanks to you framework and fun2code.
Last edited on
closed account (zb0S216C)
empror9 wrote:
can you give me the answer?

OK.

1
2
3
4
5
6
7
virtual void print() 
{
    cout << "I'm a staff. My id is " << id << endl; 
}

protected:
    string id;

[I answered the wrong one. Sorry :)]

Wazzak
Last edited on
i see, becuase i don't know virtual yet and now i read about it thank you it works

in second programme, still not working
Topic archived. No new replies allowed.
Pages: 12