现在 C++ 用的什么软件
现在好像很多人都用VC6.0 有没有人会用好点的版本 比如2008 2010 有的话教程发一下 谢谢
2014-09-28 18:20
2014-09-28 18:22
2014-09-28 22:10
2014-09-29 04:37
2014-09-29 08:41
2014-09-29 09:55
2014-09-29 10:57
程序代码:#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;
}
2014-10-14 22:38
2014-10-15 00:58