‘壹’ c语言程序执行一闪而过怎么办
可以在程序结尾使用system("pause");语句阻止窗口消失。
system("pause");的头文件为#include<stdlib.h>
#include<stdio.h>
#include<stdlib.h>
void to_upper_str( char *str ) //子函数
{
while( *str )
{
if( *str >='a' && *str<='z' )
*str -= 32;
str++;
}
}
int main(){
char str[11] ;
printf("请输入10个英文字符: ");
scanf("%s",str);
str[10]='