编译时出现了问题,各位来看一下
#include<iosteam>using namespace std;
class Date
{
int day,month,year;
public:
Date();
void init(int,int,int);
void print_ymd();
void print_mdy();
};
Date::Date()
{
year=1900;
month=1;
day=1;
}
void Date::inti(int yy,int mm,int dd)
{
month=(mm>=1&&mm<=12)?mm:1;
year=(yy>=1900&&yy<=2100)?yy:1900;
day=(dd>=1&&dd<=31)?dd:1;
}
void Date::print_ymd()
{cout<<year<<"-"<<month<<"-"<<day<<endl;}
void Date::print_mdy ()
{ cout<<month<<"-"<<day<<"-"<<year<<endl;}
int main()
{
Date date1,date2;
date1.print_ymd();
date2.print_mdy ();
date1.inti(2006,3,28);
date1.print_ymd ();
date1.print_mdy();
date2.inti(2006,13,38);
date2.print_ymd ();
date2.print_mdy ();
return 0;
}
编译时出现“fatal error C1083: Cannot open include file: 'iosteam': No such file or directory”
请问这是什么问题呢