1樓:聽不清啊
var c:char;
begin
repeat
read(c);
if c in ['0'..'9'] then write(c)until eoln;
writeln;
end.
2樓:匿名使用者
public static void main(string args)}
從鍵盤輸入一個字串,將其中的所有數字字元抽出,按原順序組成一個新串並輸出. 用c語言程式設計 謝謝
3樓:free逍遙星空
#include
int main()
c語言程式設計 從鍵盤輸入一個字串,將其中所有的數字字元抽出,按原順序組成一個新串並輸出。
4樓:匿名使用者
||#include "stdio.h"
int main(void)
5樓:
//#include "stdafx.h"//if the vc++6.0, with this line.
#include "stdio.h"
int main(void)
6樓:匿名使用者
#include
int main()
s[i] = '\0';
printf("%s\n",s);
return 0;}
7樓:匿名使用者
#include
int main(int argc, char *argv)}for(i=0;i
printf("%c",a[i]);
return 0;}
c語言 編寫程式輸入一個字串,刪除字串中的所有數字字元後輸出此字串
8樓:孟勸勸
||#include "stdio.h"
#include "string.h"
void main()
printf("\n");}
9樓:匿名使用者
給:#include
#define n 50
void delchar (char *p)int main(void)
,*pt=c;
printf("enter a string:");
gets(pt);
delchar (pt);
printf ("%s\n",c);
return 0;}
編制程式實現:從鍵盤輸入一個字串,將該字串s中所有的字元c刪除,並輸出結果。謝謝?。
10樓:聽不清啊
#include
void main()
用python從鍵盤輸入字串,統計其中大寫小寫字母以及數字的個數
include int main char str 256 char p int upper 0 int lower 0 int space 0 int digit 0 int other 0 p str p指標指向陣列第一個元素 str 0 gets p while p p不為空的時候繼續下面du...
求程式設計從鍵盤輸入字串,再輸入字元。查詢字串中該字元的個數。例如輸入字串「ABCAEF
include include 包含字串函式strlen用於計算字串長度 int main if for printf n s 中 c 的個數為 d n str,ch,count return 0 main 執行結果如下 banxi1988 banxi1988 desktop zhidao gcc ...
編寫程式,從鍵盤輸入字串存放在字元陣列a中,再將a元素
include include include define max 10 int main for int i 0 i strlen b i system pause return 0 scanf s a n strlen a for i 0,j 0 i a a i z b j 0 printf ...