greaser1
asked on
c++program
Can u help me with the source code with the following problem. thanks in advance
Define a class that represents a student. Its data include a student's ID number, last name, first name, and credit hours completed. its member function include one that assigns value to a student object and one that displays the values in a student object
Define a class that represents a student. Its data include a student's ID number, last name, first name, and credit hours completed. its member function include one that assigns value to a student object and one that displays the values in a student object
again as i said
i can write it for you
'cause in EE we can't answer a homework questions
but i"ll help you a little
first about the class you should
decid if your which of the data members should be private and which public <the data mostlly is private if not all of it>
not the class structure:
class classname{
......//data members in private
......//private funcs if there is some
public:
......//C'tor's you don't have to use them
......//data if there is some usually you
//put the data in the private
......//the public func
......//D'tor's you don't have to use them
};
about the methods (class functions) :
you should make input and output methods
and for that it will better if you"ll use operators like the operator << and
>>
it the basics for you
i can write it for you
'cause in EE we can't answer a homework questions
but i"ll help you a little
first about the class you should
decid if your which of the data members should be private and which public <the data mostlly is private if not all of it>
not the class structure:
class classname{
......//data members in private
......//private funcs if there is some
public:
......//C'tor's you don't have to use them
......//data if there is some usually you
//put the data in the private
......//the public func
......//D'tor's you don't have to use them
};
about the methods (class functions) :
you should make input and output methods
and for that it will better if you"ll use operators like the operator << and
>>
it the basics for you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Andrew