head.h
#include
#include
using namespace std;
class Time{
int hour,min,sec;
public:
void settime();};
void Time::settime(){
int h,m,s;
cout<<"请输入时间";
cin>>h;
cin>>m;
cin>>s;
cout<<"您输入的时间是:"<}
time.cpp
#include
#include
#include
using namespace std;
int main(){
Time t;
t.settime();
}
阅读(1174) | 评论(0) | 转发(0) |