如何打印输入的ASCII码的字符? [英] How print the character of an entered ASCII code?

查看:936
本文介绍了如何打印输入的ASCII码的字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我是VC ++的新手

Hi every body. I am sort of new to VC++

当我通过尝试将例子从普通C ++转换为VC ++来学习VC ++时

while I'm learning the VC++ by trying to convert examples from normal C++ into VC++

以下程序是工作但给出错误的答案"始终打印x字符而不是相应的字符相当于其在ASCII码中的值

the following program is working but given wrong answer "always printing x character instead of the corresponding character equivalent to its value in ASCII code

#include" stdafx.h"

#include" iostream"

#include< stdio.h>

#include< stdlib.h>

#include< conio.h>
#include "stdafx.h"
#include "iostream"
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

推荐答案


各个团体。我是VC ++的新手

Hi every body. I am sort of new to VC++

当我通过尝试将普通C ++中的示例转换为VC ++来学习VC ++时

while I'm learning the VC++ by trying to convert examples from normal C++ into VC++

以下程序正在运行,但给出了错误的答案"始终打印x字符而不是相应的字符相当于ASCII码中的值

the following program is working but given wrong answer "always printing x character instead of the corresponding character equivalent to its value in ASCII code

#include" stdafx.h"

#include" iostream"

#include< stdio.h>

#include< stdlib.h>

#include< conio.h>
#include "stdafx.h"
#include "iostream"
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>


这篇关于如何打印输入的ASCII码的字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆