Q:终端输入一个字符,输出ASCII碼

#include<stdio.h>
int main()
{
	char c;
	printf("input a charscter:");
	scanf("%c",&c);
	getchar();
	printf("the ASCII of %c is %d\n",c,c);
	return 0;
}

  

posted on 2017-04-22 21:23  王小东大将军  阅读(314)  评论(0编辑  收藏  举报