10 25 36
10:25:36
#include <iostream> using namespace std; class Time {public: Time(int,int,int); friend void display(Time &); //声明display函数为Time类的友元函数 private: //以下数据是私有数据成员 int hour; int minute; int sec; }; //pdsu-c1 //pdsu-c1 int main( ) { int h,m,s; cin>>h>>m>>s; //pdsu-c2 //pdsu-c2 return 0; //调用display函数,实参t1是Time类对象 }
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部cnt: 11213
关于网站改版