C 콘솔 프로그래밍창에 색 적용하기

  #include stdio.h
  #include windows.h
  int main(void)
  {
        int i;
        HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);    
        for(i=0; i<16; i++)
        {
                SetConsoleTextAttribute(hOut, i);
                printf("What about text color (%d)\n",i);
        }
       return 0;
  } 
 

FIXME

History

분류 서명 내용
등록 2008/07/04 10:16 By Mukchik. 출처 : Hantor Homepage
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki