課程
/后端開發(fā)
/C
/C語言入門
老是無法新建。
2017-12-14
源自:C語言入門 3-5
正在回答
#include <stdio.h>#include<stdlib.h>//#include<malloc.h>#define Maxsize 100typedef int ElemType;typedef struct { ElemType data[Maxsize]; int length;}SqList;SqList *init_SqList(){ SqList * L; L=(SqList *)malloc(sizeof (SqList)); if(!L) exit(1); L->length=0; return L;}
Alan_Zhao 提問者
舉報
C語言入門視頻教程,帶你進(jìn)入編程世界的必修課-C語言
1 回答如何新建編譯器呢
1 回答如何把兩個函數(shù)建在兩個文件中?比如codeblocks
3 回答如何看出那個字母代表的數(shù)值,例如a
1 回答為何輸出表達(dá)要先有一個%s\n
2 回答如何輸出一個多位數(shù)的某一位數(shù)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-12-14
#include <stdio.h>
#include<stdlib.h>
//#include<malloc.h>
#define Maxsize 100
typedef int ElemType;
typedef struct
{
ElemType data[Maxsize];
int length;
}SqList;
SqList *init_SqList()
{
SqList * L;
L=(SqList *)malloc(sizeof (SqList));
if(!L) exit(1);
L->length=0;
return L;
}