i have this code
#include <iostream> using namespace std; class time{ public: time(); //constructor void settime(int,int,int); void print(); private: int hour,min,sec; }; //constructor time::time(){ hour=min=sec=0; } int main(){ int num; time t1;//line1 time t2;//line2 cout<<"hello"<<endl; cin>>num; return 0;} and the errors in those lines are:
expected `;' before "t1"
[Warning] statement is a reference, not call, to function `time'
for each line
whats the problem???