#include "pch.h"
#include <iostream>
int main()
{
//char ch[1024*1000];
int i = 0;
char input ;
while (true)
{
scanf("%c", &input);
if (input == '\n')
printf("%\n,%d ", input);
else if (input == ' ')
printf(" ,%d ", input);
else
printf("%c,%d ", input,input);
if ((i + 1) % 10 == 0 && i != 0)
printf("\n");
i++;
}
打印输入的字符及其ASCLL码值,10个摆一行
最新推荐文章于 2021-12-19 13:15:27 发布