program to find the structure of teacher and student lecture in c++ classes

That's an odd post here. Take more time to explain what you meant to ask.

commented: how much time to take? +0

Maybe I should have simply written for you to explain what you meant to ask. The better your question the more likely others will respond.

commented: if compiler print "welcome Student " then he will come to class and print the list given above. +0

Sadly, no compiler I know will print "welcome Student" so my bet is something is lost in translation. I won't guess what you meant by that comment.

Remember, you must do your homework. Folk here might help you past a rough line of code but never have done the assignments for others.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.