導(dǎo)讀 char a[3][25]= {"XUANXIU YUWEN ", "XUANXIU YUWEN", "FEIXUANXIU TIYU"};就行了 定義成二維數(shù)組存儲(chǔ)時(shí)可以簡(jiǎn)單
char a[3][25]= {"XUANXIU YUWEN ", "XUANXIU YUWEN", "FEIXUANXIU TIYU"};就行了 定義成二維數(shù)組存儲(chǔ)時(shí)可以簡(jiǎn)單看作一排一個(gè)字符串?dāng)?shù)組,char* a[10] = {"XUANXIU", "YUWEN", "XUANXIU", "SHUXUE", "FEIXUANXIU", "TIYU"};這樣是定義了一個(gè)指針數(shù)組 指針元素分別指向每一個(gè)對(duì)應(yīng)的字符串存儲(chǔ)的首地址
標(biāo)簽:
免責(zé)聲明:本文由用戶(hù)上傳,如有侵權(quán)請(qǐng)聯(lián)系刪除!