急!编译的时候出现这个,大家看看是怎么回事?

buyizhouji 2010-06-13 08:13:31
最简单的C程序
#include <stdio.h>
main()
{ double a,b,area;
a=1.2;
b=3.6;
area=ab;
printf(a=%f,b=%f,area=%fn,a,b,area);
}

用的VS2010
编译的时候output里出现这个:

'x.exe': Loaded 'E:\Documents\Visual Studio 2010\Projects\x\Release\x.exe', Symbols loaded.
'x.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\msvcr100.dll', Symbols loaded.
'x.exe': Loaded 'C:\Windows\System32\apphelp.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\sspicli.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\userenv.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\profapi.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\winspool.drv', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\mpr.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'x.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
The program '[5928] x.exe: Native' has exited with code 0 (0x0).
...全文
753 51 打赏 收藏 转发到动态 举报
写回复
用AI写文章
51 条回复
切换为时间正序
请发表友善的回复…
发表回复
wbj2009 2011-08-11
  • 打赏
  • 举报
回复
调试-》选项和设置-》调试-》符号 勾选microsoft符号服务器,再重新调试就可以了
liuchengsong90 2011-03-15
  • 打赏
  • 举报
回复
#include <stdio.h>
int main(void)
{
float a, b,area;
a = 1.2;
b = 3.6;
area = a * b;
printf("%f %f %f\n", a, b, area);
return 0;
}
liuchengsong90 2011-03-15
  • 打赏
  • 举报
回复
#include <stdio.h>
int main(void)
{
float a, b,area;
a = 1.2;
b = 3.6;
area = a * b;
printf("%f %f %f\n", a, b, area);
return 0;
}
xielianhua124 2011-03-15
  • 打赏
  • 举报
回复
调试-》选项和设置-》调试-》符号 勾选microsoft符号服务器 下载到符号,然后重新编译就可以了
jerryhao323 2010-12-14
  • 打赏
  • 举报
回复
问题不在程序,在环境的设置上,至于怎么设置的我不是太清楚,但是你调试的时候通过按ctrl+F5,不要单击上面的三角形调试按钮。
jerryhao323 2010-12-14
  • 打赏
  • 举报
回复
剩饭vsdfvs
thegreatone 2010-08-31
  • 打赏
  • 举报
回复
不是你程序的问题,是你编译器配置问题。
NiuCai123 2010-08-31
  • 打赏
  • 举报
回复

printf("a=%f,b=%f,area=%f/n",a,b,area);
把上面的改成下面的试试
printf("a=%f/nb=%f/narea=%f/n",a,b,area);
evoloyeu 2010-08-31
  • 打赏
  • 举报
回复
先clean,再重新编译
damon1118 2010-08-27
  • 打赏
  • 举报
回复
肯定是你的 编译器配置出现问题了~~~~程序是没有问题的
robin2659 2010-08-26
  • 打赏
  • 举报
回复

最后解决了也:调试--设置--符号 选了microsoft符号服务器 下载到符号 “Cstart00.exe”: 已加载“C:\Windows\System32\kernel32.dll”,已加载符号(去除源信息)。

anniue 2010-08-26
  • 打赏
  • 举报
回复
这个错误也太低级了吧!
bobo364 2010-08-26
  • 打赏
  • 举报
回复
#include <stdio.h>

int main()
{
double a,b,area;
a=1.2;
b=3.6;
area=a*b;
printf("a=%f,b=%f,area=%f\n",a,b,area);
system("pause");
return 0;
}
ningweidong 2010-08-26
  • 打赏
  • 举报
回复
你的代码都写错了
一只小老贺 2010-06-14
  • 打赏
  • 举报
回复
楼主高明 AB能合体!佩服..
bobo364 2010-06-14
  • 打赏
  • 举报
回复
请看如下代码
#include <stdio.h>

int main()
{
double a,b,area;
a=1.2;
b=3.6;
area=a*b;
printf("a=%f,b=%f,area=%f\n",a,b,area);
system("pause");
return 0;
}
microsofton 2010-06-14
  • 打赏
  • 举报
回复
我不清楚
burenshini1 2010-06-14
  • 打赏
  • 举报
回复
#include <stdio.h>
int main()
{ double a,b,area;
a=1.2;
b=3.6;
area=a*b;
printf("a=%f,b=%f,area=%f\n",a,b,area);
return 0;
}
daocha 2010-06-14
  • 打赏
  • 举报
回复
lz is fashionable. VS2010
nanmushiyuan 2010-06-14
  • 打赏
  • 举报
回复
area=ab;这里错了吧!应该是area=a*b
加载更多回复(31)

70,037

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧