第一篇:C語言數(shù)組實驗報告
C語言實驗書P37
(2)#include
int main(void)
{
int i;
char ch;
char str[100];
printf(“請輸入字符串:n”);
scanf(“%s”, str);
printf(“請輸入查找字符:n”);
scanf(“ %c”, &ch);
for(i=0;str[i]!='
C語言實驗書P37
(2)#include
int main(void)
{
int i;
char ch;
char str[100];
printf(“請輸入字符串:n”);
scanf(“%s”, str);
printf(“請輸入查找字符:n”);
scanf(“ %c”, &ch);
for(i=0;str[i]!='