寫函式將一串字元中的母音字母複製到另符串,然後輸出

時間 2021-10-14 21:15:07

1樓:匿名使用者

#include

void main()

void cpy(char s[80],char c[80])c[j]='\0';}

2樓:

'我有乙個漢字提取拼音的vb**,不知道對你有沒有幫助

function hz_to_py(hz_str as string) as string

dim str_temp

hz_to_py = ""

str_temp = hz_str

while len(str_temp) > 0

hz_to_py = hz_to_py + pinyin(left(str_temp, 1))

str_temp = right(str_temp, len(str_temp) - 1)

wend

end function

function pinyin(p as string) as string

i = asc(p)

select case i

case -20319 to -20284: pinyin = "a"

case -20283 to -19776: pinyin = "b"

case -19775 to -19219: pinyin = "c"

case -19218 to -18711: pinyin = "d"

case -18710 to -18527: pinyin = "e"

case -18526 to -18240: pinyin = "f"

case -18239 to -17923: pinyin = "g"

case -17922 to -17418: pinyin = "h"

case -17417 to -16475: pinyin = "j"

case -16474 to -16213: pinyin = "k"

case -16212 to -15641: pinyin = "l"

case -15640 to -15166: pinyin = "m"

case -15165 to -14923: pinyin = "n"

case -14922 to -14915: pinyin = "o"

case -14914 to -14631: pinyin = "p"

case -14630 to -14150: pinyin = "q"

case -14149 to -14091: pinyin = "r"

case -14090 to -13319: pinyin = "s"

case -13318 to -12839: pinyin = "t"

case -12838 to -12557: pinyin = "w"

case -12556 to -11848: pinyin = "x"

case -11847 to -11056: pinyin = "y"

case -11055 to -2050: pinyin = "z"

case else

pinyin = p

end select

C大神幫忙!一函式統計字串中各個字母(不區分大小寫)出現的頻

武林50我愛你 你的s2沒賦值而且你把int和char進行比較是什麼意思。給你寫了一個 include using namespace std int main else if s i a s i z else int max 1,pos 1 for int i 0 i 26 i cout char...

C語言寫一函式,求出字串的長度,在主函式中輸入字串,並

陽光上的橋 main你自己寫吧,函式 如下 slen char s 付哥的技術課堂 新增註釋 include define size 200 int length char src return count int main void 一杯墜 include main int stringlengt...

用組合語言,將一串混亂的字母按從小到大的順序排列。(用過程來實現

dseg segment d db ksdacbeozx len equ d dseg ends assume cs cseg,ds dsegcseg segment start mov ax,dseg mov ds,ax call sort mov cx,len mov si,0 mov ah,0...