c - 如何向文本或 C 字符串中的字母添加下标字符?

标签 c fonts terminal character-encoding non-ascii-characters

#include <stdio.h>

int main() {
    printf("x1\n");
    return 0;
}

我想像在 HTML 中一样将 1 个字符添加到 x 的底部。用C语言可以吗?

<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>

    <body>
        x<sub>1</sub>
    </body>
</html>

最佳答案

这里不可能。正如您所看到的,如果需要,我们使用 sqrt 函数进行根覆盖,但没有符号。

关于c - 如何向文本或 C 字符串中的字母添加下标字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40812506/

相关文章:

c - size_t 用作公式中的值

C scanf() 不解析我的输入

css - 如何使此 Google 字体在 Internet Explorer 11 上工作

video - 提取没有音频的视频ffmpeg

linux - 执行 python 文件时出现意外标记附近的语法错误

c - 如何从字符串数组中访问数据? C

C - 打印数组或列表中的组合

html - Copperplate Gothic 字体在某些版本的 Firefox 中不起作用

angular - 使用 Angular Material 核心主题的 Angular 应用程序中的字体在哪里加载?

linux - 无法在 bash 中使用&符号创建别名