当前位置: 代码迷 >> C语言 >> 怎样运行编好的C程序
  详细解决方案

怎样运行编好的C程序

热度:286   发布时间:2006-12-10 22:02:40.0
怎样运行编好的C程序

请教一下各位高手啊!
File Edit Run Compile Project Options Debug Break/watch
┌──────────────────────────────────── Edit ────────────────────────────────────┐
│ Line 1 Col 1 Insert Indent Tab Fill Unindent C:NONAME.C │
│# include "math.h" │
│main() │
│{float a,b,c,d,x1,x2; │
│ scanf("%f,%f,%f",&a,&b,&c); │
│ d=b*b-4*a*c; │
│ if(d>0) │
│ {x1=(-b+sprt(d))/(2*a); │
│ x2=(-b-sprt(d))/(2*a); │
│ printf("x1=%f x2=%f\n",x1,x2); │
│ } │
│ else │
│ if(d<0)printf("Dose not have real root!\n") │
│ else{x1=x2=-b/(2*a); │
│ printf("x1=x2=%f\n",x1); │
│ } │
│ } │
│ │
ㄢㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔ Message ㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄔㄥ
│ Compiling C:\TC2.0\TC20\NONAME.C: │
│ Error C:\TC2.0\TC20\NONAME.C: Unable to create output file 'C:\TC\NONAME.obj'│
└──────────────────────────────────────────────────────────────────────────────┘
F1-Help F5-Zoom F6-Switch F7-Trace F8-Step F9-Make F10-M CAPS NUM

刚买了一本书想学,但不知道怎么用,我照书上编了一个程,然后选RUN 确定之后老是出现这样的提示什么意思啊?


后,选RUN 菜单时老是提示"CANN`T GREAT OUTPUT

搜索更多相关的解决方案: Edit  NONAME  运行  Indent  

----------------解决方案--------------------------------------------------------
option目录下directry设置不当
将output清空或设为已存在的目录
----------------解决方案--------------------------------------------------------

用tc-win,主页能找到


----------------解决方案--------------------------------------------------------
  相关解决方案