一个C++程序??能在VC++6.0上编译,但不能运行,但是在Dev-C++是能运行??是什么原因??
一个C++程序??能在VC++6.0上编译,但不能运行,但是在Dev-C++是能运行??是什么原因??
日期:2010-08-18 10:18:12 人气:2
你这是最新的C++标准
在VC++6.0当中没有namespace的概念
#include 也应该是#include
即:
#include
//using namespace std;
struct Student
{int num;
char name[20];
float score[3];
}student[5];
int main()
{int i;
for(i=0;i<5;i++)
cin>>student[