一个简单的程序,按Ctrl+F5可以执行,按F5就不行???程序代码:
/* 2.30 solution*/
#include <stdio.h>int main()
{
int number; /*要输入的整数*/
int temp1; /*临时变量1*/
int temp2; printf("输入一个五位数:\n"); /*prompt user*/
scanf("%d", &number);/*read interger*/ printf("%d", number / 10000);/* print left-most digit */
temp1 = number % 10000; printf(" %d", temp1 / 1000);
temp2 = temp1 % 1000; printf(" %d", temp2 / 100);
temp1 = temp2 % 100; printf(" %d", temp1 /10);
temp2 = temp1 % 10; printf(" %d\n", temp2);/* print right-most digit */ return 0;/* indicate successful termination */}/*end*/
这个很简单的没问题但是一按F5就不行了
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
The thread 0xEB8 has exited with code 0 (0x0).
The program 'E:\C练习\4拆分整数\Debug\4拆分整数.exe' has exited with code 0 (0x0).
按说调试不是也能执行么?困惑啊困惑???期待大侠们!!!
/* 2.30 solution*/
#include <stdio.h>int main()
{
int number; /*要输入的整数*/
int temp1; /*临时变量1*/
int temp2; printf("输入一个五位数:\n"); /*prompt user*/
scanf("%d", &number);/*read interger*/ printf("%d", number / 10000);/* print left-most digit */
temp1 = number % 10000; printf(" %d", temp1 / 1000);
temp2 = temp1 % 1000; printf(" %d", temp2 / 100);
temp1 = temp2 % 100; printf(" %d", temp1 /10);
temp2 = temp1 % 10; printf(" %d\n", temp2);/* print right-most digit */ return 0;/* indicate successful termination */}/*end*/
这个很简单的没问题但是一按F5就不行了
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
The thread 0xEB8 has exited with code 0 (0x0).
The program 'E:\C练习\4拆分整数\Debug\4拆分整数.exe' has exited with code 0 (0x0).
按说调试不是也能执行么?困惑啊困惑???期待大侠们!!!
这时调试器要Load一些系统模块,估计你系统有问题,或者文件被移动过了
不过没啥大关系,程序只要没问题就可以跑...