简体   繁体   English

如何在程序中打印 Ansii c 扩展代码?

[英]How do I print Ansii c Extended Code in a program?

在此处输入图片说明

how do i make input or output of highlighted code?我如何输入或输出突出显示的代码?

I also use this code.我也用这个代码。

#include <stdio.h>
 int main()
  {
    int e;
    char ch;

    printf("\n Enter a character : ");
    scanf("%c",&ch);
    e=ch;
    e=e-6;
    ch=e;
    printf("\n This is  % c before the character W :",ch);
    getch();
    return 0;
  }

this code will print Q for input W此代码将为输入W打印Q

Input输入

Enter a character : W

Output输出

This is  Q before the character W

Alt-列中的数字意味着您必须读取两个字符:如果第一个字符为零,则您必须读取另一个字符才能获得密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM