2 like 0 dislike
請依下列的定義完成函數。

 

#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[])

{

 

}
[Normal] Essay (Open question) - asked in 2017-1 程式設計(一)AD by (30k points)
Available when: Unlimited - Due to: Unlimited
| 45 views

3 Answers

0 like 0 dislike
Hidden content!
**** ** * * * *


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


*** **



{


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


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


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


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


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



}



int * * char ** *



{


** * ** * * *** ** * *** = {0};


** *


**** != *** ++)



{


**** ** ***** 'A' * * * * * * *


*** * ** = 1;


* * *** * ***** 'a' ** * * ** ** * *


* * * * = 1;



}


** * ** * * **


*** += *


* * **



}
answered
0 like 0 dislike
Hidden content!
* ** ****** **** * * ** * ***** * * * **
answered by (190 points)
0 like 0 dislike
Hidden content!
** ** * ** *** ** *** **** * ** *** *
answered by (160 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.78.100
©2016-2019

Related questions

8 like 0 dislike
5 answers
[Exam] asked Dec 8, 2017 in 2017-1 程式設計(一)AD by Shun-Po (18k points)
Available when: 2017-12-08 18:30 - Due to: 2017-12-08 21:00
| 12 views
2 like 0 dislike
8 answers
[Normal] Coding (C) - asked Dec 20, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
Available when: Unlimited - Due to: Unlimited
| 78 views
2 like 0 dislike
5 answers
[Normal] Essay (Open question) - asked Dec 20, 2017 in 2017-1 程式設計(一)AD by 楊修俊 (30k points)
Available when: Unlimited - Due to: Unlimited
| 50 views
8,963 questions
76,076 answers
51,674 comments
2,195 users