leftjust.c
来自「C_C++_C#程序员实用大全(精华版)源代码 代码详实 一步一步的深入 适」· C语言 代码 · 共 13 行
C
13 行
#include <stdio.h>
void main(void)
{
int int_value = 5;
float flt_value = 3.33;
printf("Right justified %5d value\n", int_value);
printf("Left justified %-5d value\n", int_value);
printf("Right justified %7.2f value\n", flt_value);
printf("Left justified %-7.2f value\n", flt_value);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?