求真相,生成的.exe不能运行
程序代码:#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
void Toupper(char * x);
void Aatoi(char *n);
int main(int argc,char *argv[])
{
FILE *p;
char n[20];
p=fopen("w.txt","r");
fgets(n,20,p);
Aatoi(n);
fputs(n,stdout);
putchar('\n');
}
void Toupper(char * x)
{
while(*x)
{
*x=toupper(*x);
x++;
}
}
void Aatoi(char *n)
{
unsigned int i;
for(i=0;i<strlen(n);i++)
{while(isdigit(*(n+i)))
{
printf("%d",*(n+i)-48);
n++;
}
}
putchar('\n');
}编译通过,可点击Debug下的.exe却报错!请高人指点。。。不懂的就算了









