// C02_1.cpp : Defines the entry point for the console application. // C02_1.cpp 路徑為 C:\JBVC #include "stdafx.h" #include int main(int argc, char* argv[]) { // 變數宣告 int a; //宣告變數 a 為整數資料型態 int b[10]; //宣告變數 b 為陣列資料型態 float c; //宣告變數 c 為浮點數資料型態 a=100.5; b[0]=200; c=2.36; printf("顯示變數 a 資料 %d test\n",a); printf("顯示變數 b 資料 %d test\n",b[0]); printf("顯示變數 c 資料 %f test\n",c); return 0; }