យើងប្រើ អនុគមន៍ textcolor(number); ដើម្បីកំណត់ពណ៌អោយព័ត៌មានដែលបញ្ចេញ។ យើងត្រូវប្រើវានៅក្នុង Header file #include<conio.h> ជាមួយអនុគមន៍ cprintf(); ។
Ex:
#include<stdio.h>
#include<conio.h>
void main(){
clrscr();
textcolor(BLUE);
cprintf("This color is BLUE");
getch();
}
No comments:
Post a Comment