#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

#include <conio.h>
#include <math.h>
#include <string.h>
#include "console.c"

#define MAX 100

main(){
	clrscr();	// clear screen
	gotoxy(10,5);
	setrgb(1); printf("C ");
	setrgb(2); printf("Program");
	setrgb(4); printf("ming\n");
	system("pause");
	return 0;
}

console-test.c C»y¨¥(¼Ð·Ç¨ç¦¡®w) code::blocks
#include <limits.h>
int (4 bytes)
	printf("INT_MIN  =%+i\n",INT_MIN  );	// -2147483648
	printf("INT_MIN-1=%+i\n",INT_MIN-1);	// +2147483647

	printf("INT_MAX  =%+i\n",INT_MAX  );	// +2147483647
	printf("INT_MAX+1=%+i\n",INT_MAX+1);	// -2147483648

char (1 byte)
	printf("CHAR_MIN  =%+i\n",CHAR_MIN);	// -128
	printf("CHAR_MAX  =%+i\n",CHAR_MAX);	// +127

short (2 bytes)
	printf("SHRT_MIN  =%+i\n",SHRT_MIN);	// -32768
	printf("SHRT_MAX  =%+i\n",SHRT_MAX);	// +32767
system("color F0");	// F=white(background), 0=black(foreground)
setTextAttr(240);	// black
setTextAttr(252);	// red
setTextAttr(250);	// green
setTextAttr(249);	// blue