#include #include FILE *fp; void test(){ fp=fopen(“t1.txt”.”wt+”); wt新建文 fp=fope...
![240](https://cdn2.jianshu.io/assets/default_avatar/1-04bbeead395d74921af6a4e8214b4f61.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
#include #include FILE *fp; void test(){ fp=fopen(“t1.txt”.”wt+”); wt新建文 fp=fope...
#include”stdio.h”用于引自定義.h文件,預(yù)處理文件; #define PI 3.14符號處理文件; #define定義符號常量 exit停止當(dāng)前運(yùn)行德撬,不執(zhí)行后...
線性結(jié)構(gòu):順序表 把每一個(gè)字符串看成一個(gè)整型帝火,就可以把一個(gè)二維看成一個(gè)一維迄薄; 數(shù)據(jù)類型:int long char float double疫诽; struct 結(jié)構(gòu)體名 { 類...
形參相當(dāng)于入口钻心,返回值相當(dāng)于出口; 例如: 面包fun(水a(chǎn),面粉b){ 面包c(diǎn); C=a*2+b; Return c } Int main(){ Fun(a b) } 函數(shù)...
函數(shù): Int main(){ } 標(biāo)識符:字母唉匾、數(shù)字孕讳、_匠楚,首不能是數(shù)字(_s2,s_2) 不能用關(guān)鍵字或保留字 返回值類型函數(shù)名(參數(shù)列表){ 函數(shù)體 } Void空返回值...
getchar 獲取字符(只接收單個(gè)字符) putchar 輸出字符(單個(gè)字符) getch()接受字符,不顯示 getche()有返回顯示 break 停止當(dāng)前循環(huán)語句 c...
1.二維數(shù)組 行優(yōu)先a[0] a[0][0] a[0][1] a[0][2] a[1] a[1][0] a[1][1] a[1][2] a[2] a[...