#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void Input_Bigword(char str[])
{
char* p = str;
while (*p)
{
if (*p >= ‘A’ && *p <= ‘Z’)
{
printf("%c", *p);
}
p++;
}
putchar(’\n’);
p = str;
while (*p)
{
if (*p >= ‘A’ && *p <= ‘Z’)
{
break;
}
p++;
if (!*p)
{
printf(“not found\n”);
}
}
}
int main()
{
char str[100] = " ";
gets(str);
Input_Bigword(str);
system(“pause”);
return 0;
}
输出字符串中的大写字母
最新推荐文章于 2025-04-09 21:01:04 发布
7084

被折叠的 条评论
为什么被折叠?



