C
C
CerTunia2016-05-10 21:35:42
Programming
CerTunia, 2016-05-10 21:35:42

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 question

Ask a Question

731 491 924 answers to any question