#include<iostream>
usingnamespace std ;
class time
{
public:
int hour,min;
time(int);
};
time::time(int a)
{
hour=a/60;
min=a%60;
}
int main()
{
time t1(125);
cout<< t1.hour ;
cout<<"\n";
cout<<t1.min;
return 0;}
My guess is that the code you think you're compiling is not actually the code you are compiling.