classes and Lists In c++

How to make a student class and student List class:
Student class data member is roll no and student type should be pointer next to hold the adress of next student.
function: add(char*roll no)
display roll no:
In main function :
object of student list class is created and call add method:
Give me Some idea about this concept :
Thanks!!!!!!!!
for your Student class:
http://www.cplusplus.com/doc/tutorial/classes/

and for your StudentList class, create a class like above, but have it contain a vector of Student objects.
http://www.cplusplus.com/reference/vector/vector/

or a c-ctyle array if you're not allowed to use vectors.
Topic archived. No new replies allowed.