....

2014年5月25日 星期日

[長知識] C語言 - 新手篇章 - 結構struct

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
// 結構struct
//  自訂的變數型態,結構變數

//可以存放多個不同型態的變數 ex. 裡面有19個int, 12個double,...



//結構型態abc,參數名稱為b
struct abc b;

int z;
double y;




return 0;
}

沒有留言:

張貼留言