kk258966

3/5 C++ 作業一

Mar 12th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5. char word;
  6. printf("請輸入一個字元:");
  7. scanf("%c", &word);
  8. printf("輸入內容:%c \n", word);
  9. printf("您輸入的內容之ASCII是:%d",word);
  10.     system("pause");
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment