8 like 0 dislike
1.1k views
請依下列的定義完成函數。

 

#include <stdio.h>

 

///

///函數名稱 count

///函數功能 計算字串當中共用了多少種英文字母

///參數說明

///str 要被搜尋的字串

///

int count(const char str[]);

 

int main()

{

   char str[1000];

   gets(str);

   printf(“共使用了 %d 種英文字母”, count(str));

   return 0;

}

 

int count(const char str[])

{

 

}
[Exam] asked in 2017-1 程式設計(一)AD by (18k points)
ID: 36177 - Available when: 2017-12-08 18:30 - Due to: 2017-12-08 21:00

edited by | 1.1k views

5 Answers

0 like 0 dislike
Hidden content!
#include * * **



int count(const char str[]);



int main()



{


* * * ***** * str[1000];


** * ** * * **


*** * ** *** * * **** ** %d 種英文字母”, count(str, key));


** * * * ** * * 0;



}



int count(const char str[])



{
** * ** * *** * *** ** ** i,j;
** **** * * ** ** *
*** * * * *** * * ***** * * ** * * *
*** ***** * * ** * ******
* *** *** * ** * *** ** * * ***** ** * * ** ** * *
**** ** * * * * * * * * ** * *** * * **** *
* ***** * *** *** * ** ** *** ****** *** * ** * * ** * *** * * ** * ** *
* * * ** * ***** * ****** * * * ** * * * * * *
answered by (202 points)
0 like 0 dislike
Hidden content!
**** ***** *

int * **** char[] str, const char key[]);

int main()



{


* * ** ** *** * *** *
* * * * * ** ** **
* ** * ** *** * *** * * * * %d ** * * ** * key));
**** * * ** ** *** ** * 0;



}

int *** * char[] str)

{
******* ** * * **** * ** *** * *** * * * * ** *
* *** * *** ** * * **** *** * ***
* * * ******** * * * ** 0;

}
answered by (194 points)
0 like 0 dislike
Hidden content!
*** * *** * * * ***** ** * ** * ** * * * * ****
answered by (144 points)
0 like 0 dislike
Hidden content!
* * * ***** * * **

int * ** * * ** * str);

int *

{
* * *** *** * * * ******
****** ** * * ** **** * *
* ** ** * *** *** ** ** * %d ***** **** *** ** **** key));
* **** * *** ** ** ** **** 0;

}

int * * * ** char[] str)

{

}
answered by (215 points)
0 like 0 dislike
Hidden content!
* *** *** *** *

int count * * * * * str, const char *** *

int * **



{


* * * ** ** * * * * **


* * * ** *** *** ** ***


** * **** * * **** ** *** ***** %d ** **** ** * ** * **** *


* * *** * * ** ** 0;



}


* *



int ** ** str)



{
*** *** **** ** *** ** * ***
* *** **** * 0;


* **



}
answered by (190 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.159.191
©2016-2025

Related questions

2 like 0 dislike
3 answers
[Normal] Essay (Open question) - asked Dec 20, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 38158 - Available when: Unlimited - Due to: Unlimited
| 1.1k views
8 like 0 dislike
3 answers
[Exam] asked Dec 8, 2017 in 2017-1 程式設計(一)AD by Shun-Po (18k points)
ID: 36175 - Available when: 2017-12-08 18:30 - Due to: 2017-12-08 21:00
| 1.5k views
2 like 0 dislike
8 answers
[Normal] Coding (C) - asked Dec 20, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
ID: 38155 - Available when: Unlimited - Due to: Unlimited
| 3.1k views
12,783 questions
183,442 answers
172,219 comments
4,824 users