diff --git a/1.cpp b/1.cpp new file mode 100644 index 0000000..177e22c --- /dev/null +++ b/1.cpp @@ -0,0 +1,27 @@ +#include +using namespace std; +class Time +{ +public: + void setTime(); + void showTime(); + int hour, minute, sec; +}; + +void fun(Time &t) +{ t.hour=23; } + +void Time::setTime() +{ cin>>hour>>minute>>sec; } + +void Time::showTime() +{ cout<