| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 363 人关注过本帖
标题:这个程序哪里不标准了???
只看楼主 加入收藏
tyc1920
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2007-10-27
收藏
 问题点数:0 回复次数:2 
这个程序哪里不标准了???
写了个程序在DEV-C++里不可以运行,就到TC里去运行,可以运行,程序哪里不标准了????

#include "stdio.h"
#include "conio.h"
#include "stdlib.h"
#include "graphics.h"
void funcolor(int,int,int);
void question1();
void question2();

int main()
{
    funcolor(12,10,15);
    question1();
    funcolor(14,5,2);
    question2();
    getch();
    return 0;
}

void funcolor(int iColorOutside,int iColorIndside,int iColorText)
{
     window(1,1,80,25);
     textbackground(iColorOutside);
     clrscr();
    window(20,5,60,20);
     textbackground(iColorInside);
     textcolor(iColorText);
     clrscr();
}

void question1()
{
     char cCh='\0',cCha='\0';
     printf("Now begin the test.");
     gotoxy(1,3);
     printf("1.Look _____ the picture.");
     gotoxy(1,5);
     printf("A) after B) for C) at D) on");
     gotoxy(1,7);
     printf("your choice is:");
     scanf("%c",&cCh);
     gotoxy(1,9);
     printf("Press any key to continue...");
     scanf("%c%c",&cCh,&cCha);
}


void question2()
{
     char cCh='\0',cCha='\0';
     gotoxy(3,2);
     printf("Now continue.");
     gotoxy(3,4);
     printf("2. Put _____ your coat.");
     gotoxy(3,6);
     printf("A) in B) up C) on D) to ");
     gotoxy(3,8);
     printf("Your choose is:");
     scanf("%c",&cCh);
     gotoxy(3,10);
     printf("Press enter to end...");
     scanf("%c%c",&cCha,&cCha);
}
2008-03-29 20:16
now
Rank: 1
来 自:广州
等 级:新手上路
帖 子:544
专家分:0
注 册:2007-11-9
收藏
得分:0 
#include "graphics.h"
DEV里好像没有这个图形库

GIS
Geographic Information System
你在哪里?——》你的坐标?
2008-03-29 22:08
随心
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:12
帖 子:2577
专家分:250
注 册:2007-8-12
收藏
得分:0 
就是楼上说的那个问题

天之道,利而不害。圣人之道,为而不争。信言不美,美言不信。善者不辩,辩者不善。知者不博,博者不知。
2008-03-30 07:26
快速回复:这个程序哪里不标准了???
数据加载中...
 
   



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

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