c语言编译后闪退窗口
发布时间: 2023-01-05 09:43:01
❶ 为什么c语言程序运行时打开后自动闪退
以下一段代码为例:

❷ 新手学C问题:为什么我的C语言程序老是闪退
在return 0; 前加一条语句 getchar();
❸ 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]='
