我正在忙于在过去的考试文件中准备Visual Basic考试.我需要帮助我解决以下问题.
原文链接:https://www.f2er.com/vb/255180.htmlWrite a function procedure to calculate the number of times the characters “e”,“f” and “g” appears in a string
我试图写出psuedo代码,并提出了以下.
Loop through each individual character in the string If the character = "e","f" or "g" add 1 to number of characters Exit loop Display total in messageBox@H_404_8@如何循环使用字符串中的各个字符(使用for循环),如何计算特定字符在字符串中出现的次数?