Answer the question
In order to leave comments, you need to log in
How to write int values to a class object using cin?
#include
class Time
{
private;
int second;
int minute;
int hour;
public;
.............//declaration of functions and constructor
};
.........................//description of functions and constructor
int main()
{
Time x(0,0,0);
std::cin>>x>>std::endl;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question