VC++6.0中出错:'std' : does not exist or is not a namespace
#include<iostream>#include"stdafx.h"usingnamespacestd;classTDate{public:voidSetDate(i...
#include <iostream>
#include "stdafx.h"
using namespace std;
class TDate
{
public:
void SetDate(int y, int m, int d)
{year=y; month=m; day=d;}
int IsLeapYear()
{return(year%4==0 && year%100!=0) || (year%400==0);}
void Print()
{cout<
private:
int yeay, month, day;
}
};
int main(int argc, char* argv[])
{
return 0;
} 展开
#include "stdafx.h"
using namespace std;
class TDate
{
public:
void SetDate(int y, int m, int d)
{year=y; month=m; day=d;}
int IsLeapYear()
{return(year%4==0 && year%100!=0) || (year%400==0);}
void Print()
{cout<
private:
int yeay, month, day;
}
};
int main(int argc, char* argv[])
{
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询