『壹』 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]='