任何人可以幫助我與我的代碼字符串中的字符搜索
int main(void){
int ctr,wordLength;
char theWord[99];
ctr = 0;
printf("Enter a Word: ");
scanf("%s", &);
printf("Enter the letter you want to find: ");
scanf("%s", &);
while(ctr < wordLength | theWord[ctr]=='a'){
ctr++;
}
//output
}
期待輸出
輸入一個字:你好
輸入你要查找的字母:
在字中未找到字母z。
你是什麼意思'的scanf( 「%S」,&);'的意思??? – haccks
我留空白,我不知道我應該怎麼輸入 –