输出单个字符

来源:互联网 发布:大蚂蚁软件 编辑:程序博客网 时间:2024/05/29 06:42
#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) {char zifu1,zifu2,zifu3;                      //声明字符1,2,3 zifu1='x';                                   //定义字符1 zifu2='p';                                   //定义字符2 zifu3='h';                                    //定义字符3 putchar(zifu1);                               //输出字符1 putchar(zifu2);                               //输出字符2 putchar(zifu3);                               //输出字符3 return 0;}