write a program which takes student marks from user and it pass to student class object then that class decides whether the student getting first , second or third classes

just to help start you off (from how I interpret the problem ):

Steps :

1) declare variable for input
2) get user's input via cin
3) have a class ready to pass the variable to its consturctor
4) inside constructor decide which class the students get
5) print the class the student gets

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.