|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include <stdio.h>
int main()
{
int n = 99;
printf("put a string:\n");
while (getchar() != '\n');
{
n+6;
}
printf("%d", n);
return 0;
}
“改错.exe”: 已加载“D:\Project\vc2010\改错\Debug\改错.exe”,已加载符号。
“改错.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”,Cannot find or open the PDB file
“改错.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”,Cannot find or open the PDB file
“改错.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”,Cannot find or open the PDB file
“改错.exe”: 已加载“C:\Windows\SysWOW64\msvcr100d.dll”,已加载符号。
线程 'Win32 线程' (0x11fc) 已退出,返回值为 0 (0x0)。
程序“[4824] 改错.exe: 本机”已退出,返回值为 0 (0x0)。
put a string:
qwer
4
--------------------------------
Process exited after 1.982 seconds with return value 0
请按任意键继续. . .
- #include <stdio.h>
- int main()
- {
- int n = 0;
- printf("put a string:\n");
- while (getchar() != '\n') // while 循环不能加 ;
- {
- n++; //emmm
- }
- printf("%d", n);
- return 0;
- }
复制代码
|
|