9.8 ĳá
#include <iostream>
using namespace std;
class Time
{public:
Time(int,int,int);
int hour;
int minute;
int sec;
};
TimeTime(int h,int m,int s)  //幹캯
{hour=h;
minute=m;
sec=s;
}

void fun(Time &t)            //βtTime 
{t.hour=18;}

int main( )
{Time t1(10,13,56);            // t1Time
fun(t1);                      //ʵTime󣬿ͨ޸ʵt1ֵ
cout<<t1.hour<<endl;          //t1.hourֵΪ18
return 0;
}