kk258966

3/5 C++ 練習一

Mar 5th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5.  char ch='h';
  6.  printf("%c\n",ch);
  7. printf("The ASCII code for '%c' is %d\n", ch, ch);   //%d印出ASCII code
  8.     system("pause");
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment