實現從鍵盤上輸入的字串的連線,9 實現從鍵盤上輸入的字串的連線,

2022-06-04 03:11:52 字數 696 閱讀 7155

1樓:童年的秋天

#include

#include

#include

#include

void mystrcat(char*ds,char* cs);

int fun(char *s);

int main()

if(fun(s1))

printf("這是斐波那契數列\n");

else

printf("這不是斐波那契數列\n");

}return 0;

}void mystrcat(char*ds,char* cs)while(*cs!='\0')

*ds='\0';

}int fun(char *s)

// printf("%c\n",*(s+2));

//printf("%d\n",*(s+1)-'0');

//printf("%d\n",f1+f2);

if((*(s+1)-'0')==(f1+f2))return fun(s);

}else

return 0;

} 呼喚lz。。o(∩_∩)o~

2樓:匿名使用者

c語言我做過,但是忘了。其實很簡單,一共只有幾行,讓我想想

3樓:

開啟word就可以了

編寫一下程式從鍵盤上輸入字串,統計字串中英文字母的個數及數字的個數

不用那麼複雜,漢字倆位元組,英文一個位元組,計算下關係就可以了 public class test public class test else if value 65 value 90 value 97 value 122 else system.out.println 數字個數 num 字母個數...

任意輸入字元組成字串,對該字串中的字元按ASCII碼值升序排列後輸出,程式設計實現此功能

在手機知道中已有 知道君 正確的回答,電腦中為何看不見呢 public class form1 不限制輸入的字元個數 private sub button1 click byval sender as system.object,byval e as system.eventargs handles...

C語言 用字元陣列從鍵盤輸入字串,刪除字串中所有

1 遍歷字串 2 對每個字元 判斷,如果不是字母,則刪除。刪除可以通過後續字元前專移,覆蓋要刪 屬除字元的方式實現。如下 int main s j 0 printf s n s include include include int main str2 j 0 printf s str2 getch...