본문 바로가기

IT/c, c++

[c] ASKII 코드 출력

#include <stdio.h>

#include <conio.h>

int main()
{
   char ch;

   while(1)
   {
      printf("문자 ");
      ch = getch();
      ch = getch();

      printf("%c 아스키값 %d\n",ch,ch);
   }
}



'IT > c, c++' 카테고리의 다른 글

[c] 소켓 생성 기본  (0) 2014.01.23
Template 코드의 선언과 정의는 하나의 파일에 넣자!  (0) 2014.01.23
[c] IP Setting  (0) 2014.01.23
[c] File 입출력  (0) 2014.01.23
[c,c++] malloc 와 new 의 차이  (0) 2014.01.23