#include<stdio.h>
#include<windows.h>
#include<conio.h>
void main(void){
CHAR line;
line = 0x74;
while(1){
if(_kbhit()) line = _getch();
printf(">%10s", " ");
for(int i=7; i>=0; i--)
if((line&(1<<i))==(1<<i)) printf("%s", " ■");
else printf("%s", " □");
printf("%10s<\n", " ");
// Sleep(1);
}
}
'OpenSTUDY > openProjects' 카테고리의 다른 글
Marker Tracking (0) | 2012.10.25 |
---|---|
ATmega8 RGB LED BAR (0) | 2012.10.25 |
Capstone Design 3.0.1 (0) | 2011.12.19 |
Capstone Design 3.0.0 (0) | 2011.12.13 |
Capstone Design 2.0.0 (0) | 2011.12.13 |