Compare commits

..

No commits in common. "cd24bbb82089447782d64756bb4d53057fac3ba2" and "8e1ee26b64a3cd1275ef7e45a673aff830477225" have entirely different histories.

2 changed files with 0 additions and 33 deletions

View File

@ -1,19 +0,0 @@
/* floats.c - 一些浮点型修饰符的组合 */
#include <stdio.h>
int main(void)
{
const double RENT = 3852.99; // const变量只读变量不是常量
printf("*%f*\n", RENT);
printf("*%e*\n", RENT);
printf("*%4.2f*\n", RENT);
printf("*%3.1f*\n", RENT);
printf("*%10.3f*\n", RENT);
printf("*%10.3E*\n", RENT);
printf("*%+4.2f*\n", RENT);
printf("*%+10.2f*\n", RENT);
printf("*%010.2f*\n", RENT);
return 0;
}

View File

@ -1,14 +0,0 @@
/* width.c - 字段宽度 */
#include <stdio.h>
#define PAGES 959
int main(void)
{
printf("*%d*\n", PAGES);
printf("*%2d*\n", PAGES);
printf("*%10d*\n", PAGES);
printf("*%-10d*\n", PAGES);
return 0;
}