新手学C++的一些疑问
请各位帮我看一下我的代码有什么问题。。运行之后,结果总是出现不是期待种的结果
//build a program to know how many seconds in a year
//in this program ,you should key in year day hour and minute
#include <iostream>
using namespace std;
int main()
{
int year,day,hour,minute,second;
int seconds;
int stop;//use the key in function to stop the exe
cout<<"key in the years you want to know\n";
cin>>year;
cout<<"key in the days in a year\n";
cin>>day;
cout<<"key in the hours in a day\n";
cin>>hour;
cout<<"key in the minutes in an hour\n";
cin>>hour;
cout<<"key in the seconds in a minute\n";
cin>>second;
seconds=year * day * hour * minute *second;
cout<<"the years you key in is "<<year<<" ,and the seconds number is \n"<<seconds<<endl;
cin >>stop;
}