Saturday, November 27, 2010

Đồ họa chạy thử hàm màu sắc và background trong C

chuong trinh thu ham gotoxy,textcolor va ham delay.
cac ban viet tren tubor C roi tu rut ra y nghia cua cac ham.
#include <stdio.h>
#include <conio.h>
#include<dos.h>
#include<string.h>
void main()
{
int c;
char chuoi[20];
clrscr();
printf("\n nhap chuoi:");
gets(chuoi);
do{
 textcolor(c);
 gotoxy(10,10);
 cprintf("%s",chuoi);
 c++;
 delay(10);
 }while(!kbhit());
}

No comments:

Post a Comment

Popular Posts