討論串[問題] C 結構指標的記憶體配置寫法
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者x000032001 (某數要尋找暑假工作機會)時間15年前 (2010/07/20 14:47), 編輯資訊
0
0
0
內容預覽:
這樣就可以跑. #include <stdio.h>. #include <stdlib.h>. int main(). {. typedef struct. {. int area;. int width[15];. int height[15];. } MS;. MS *burst;. burs
(還有207個字)

推噓5(5推 0噓 13→)留言18則,0人參與, 最新作者NGboy (今天我NG了)時間15年前 (2010/07/20 14:22), 編輯資訊
0
0
0
內容預覽:
typedef struct {. int area;. int width[15];. int height[15];. }MS;. MS *burst;. burst=(struct MS*)malloc(sizeof(struct MS)*40);. ^^^^^^^^^^^^^^^^^^^^^
(還有164個字)
首頁
上一頁
1
下一頁
尾頁