| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 689 人关注过本帖
标题:看看我的程序哪里出的问题?
只看楼主 加入收藏
wanghigh
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2006-9-27
收藏
 问题点数:0 回复次数:1 
看看我的程序哪里出的问题?

#include <conio.h>
#include <stdio.h>
#include <graphics.h>
main()
{
int i;
float a,b,d;
char *c[]={"Please input the sum of quantity:", "Please input interfior:", "count"};
textbackground(0); /* 设置屏幕背景色 */
clrscr(); /* 清除文本屏幕 */
for(i=0; i<3; i++)
{
textbackground(i+1);
window(15+15*i, 10, 25+15*i, 20); /* 定义文本窗口 */
clrscr(); /* 清除窗口 */
cprintf("%s", c[i]);
}
window(15,10,25,20);
gotoxy(1, 4);
scanf("%f",&a);
window(30,10,40,20);
gotoxy(1, 4);
scanf("%f",&b);
d=b/a;
window(45,10,55,20);
gotoxy(1, 4);
printf("%f",&d);
getch();
}

这里的d为何没有传过来?

搜索更多相关主题的帖子: include float graphics 
2006-10-11 20:26
wanghigh
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2006-9-27
收藏
得分:0 
printf("%f",&amp;d);多了一个&amp;
2006-10-11 20:33
快速回复:看看我的程序哪里出的问题?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014088 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved