现在 C++ 用的什么软件
现在好像很多人都用VC6.0 有没有人会用好点的版本 比如2008 2010 有的话教程发一下 谢谢
程序代码:#include<iostream>
#include<cstdlib>
using namespace std;
//write by Wuxc
#define OVERFLOW -3//定义OVERFLOW为溢出
#define OK 1
#define ERROR 0
#define MAXSIZE 100
typedef bool Status;
typedef int ElemType;
typedef struct
{
ElemType *elem;
int length;
}SqList;
Status InitList_Sq(SqList &L)//status是状态的意思,它指的是返回值的状态
{
//构造一个空的顺序表L
L.elem=new ElemType[MAXSIZE];//为顺序表分配一个大小为MAXSIZE的数组空间
if(!L.elem) exit(OVERFLOW);//存储分配失败
L.length=0;//空表长度为0
return OK;
}