VC ++中 怎么没这个库函数啊??
graphics.h
我想要那该怎么办啊??
VC ++中 怎么没这个库函数啊??
graphics.h
我想要那该怎么办啊??
VC 中没有 graphics.h,
不知道你碰到什么问题了?
corrupt,
当你提出这个问题的时候你已经涉及到 windows编程了。画图要用到很多GDI 函数。相关内容请看另外一个帖子:http://bbs.bc-cn.net/bbs/dispbbs.asp?boardid=56&star=2&replyid=20013&id=4546&skin=0&page=1
14 楼说了一些 GDI (grafic device interface) 的内容,还有不清楚请在那个帖子中贴出。
那楼上的你看看,下面的程序有问题吗??
那个textcolor 要用什么头文件的啊??
#include<conio.h> #include<stdio.h>
void main() { int NUM,I; struct STUDENT { char NAME[30]; int AGE; char ID[10]; }; struct STUDENT STD[100];
clrscr(); textcolor(LIGHTBLUE); cprintf("\nHow many student do you have? Input the number:"); scanf("%d",&NUM); textcolor(CYAN); for(I=1;I<=NUM;I++) { cprintf("\nInput student %d -- name:",I); scanf("%s",&STD[I-1].NAME); cprintf("\nInput student %d -- age:",I); scanf("%d",&STD[I-1].AGE); cprintf("\nInput student %d -- ID:",I); scanf("%s",&STD[I-1].ID); } textcolor(YELLOW); cprintf("\nTo see the RESULT,Press Any Key... ..."); getch(); textcolor(WHITE); for(I=1;I<=NUM;I++) { printf("\n student %d -- name:%s",I,STD[I-1].NAME); printf("\n student %d -- age:%d",I,STD[I-1].AGE); printf("\n student %d -- ID:%s",I,STD[I-1].ID); } textcolor(YELLOW); cprintf("\nPress Any Key To EXIT... ..."); getch(); }
呵呵,是用graphics.h吧,这个是dos的文字颜色函数,我没用过,不知道啊!
要是想要graphics.h,你下载个turbo C下来就有了。
哦,是这样的啊!!
那不用了!!我还是用VC的好了!!!
我现在可以编写一些小程序,比如计算器...
但我现在很迷茫,不知道该干什么了??能指点一下吗、?
或是我本身的基本水平还不太坚实,还要继续努力◎◎
[此贴子已经被作者于2004-10-01 10:17:48编辑过]
我也不坚实,因为从来没有建筑过,想学一下MFC,那些类又看不懂。