void 统计字符串中某字符个数()
{//缘由https://bbs.csdn.net/topics/395012338
int j = 0, i = 0;
char str[100]; gets_s(str);
while (str[i] != '\0')if (str[i++] == '*')++j;
cout << j << endl;
}
void 统计字符串中某字符个数()
{//缘由https://bbs.csdn.net/topics/395012338
int j = 0, i = 0;
char str[100]; gets_s(str);
while (str[i] != '\0')if (str[i++] == '*')++j;
cout << j << endl;
}