Cannot find c module! Do not understand...
CodePudding user response:
The other for the first time I post, thought not to go out, two points, direct repeat, how can I delete??CodePudding user response:
Run the knew, still fools, your Chinese teacher will be ashamed of youCodePudding user response:
To learn programming, must use the computer, light reading is uselessCodePudding user response:
Reference laozhao:Eye through thousand times than hand over
After supper walk can live ninety-nine
A smoke after a meal better than living immortal
People have more bold how productive
Is only limited to do less than
Heart have how old stage then how much
.
CodePudding user response:
The building Lord pupil? Know what is the meaning of fools?CodePudding user response:
With the fewest digits to represent the output decimal integer, if the actual figures than the width of the definition, the output according to the actual figures, if real digit less than the width of the definition of the fill in the blank space or 0,#include
Int main (void) {
Int a=15.
Long float b=123.1234567;
//original b is defined as a float b=123.1234567;
//@ Deng Xiaoliang feedback the readers, the author found that will overflow, in front of the long
Double c=12345678.1234567;
Char d='p';
Printf (" a=% d \ n ", a);
Printf (" a=% d % % d, 5 a (% % 5 d)=% d, % a % % o=o, a (% % x)=% x \ n \ n ", a, a, a, a);//can output % % %
Printf (" a=% f \ n ", b);
Printf (" b=% f, % f, %) (lf) % %=b % lf, b (5.4 lf) % % %=5.4 lf, b (% % e)=% e \ n \ n ", b, b, b, b);
Printf (" c=% f \ n ", c);
Printf (" (lf) % %=c % lf, c=% f, % f, %) c (8.4 lf) % % %=8.4 lf \ n \ n ", c, c, c);
Printf (" % d=c \ n ", d);
Printf (" % d (c) % %=c, d (8 c) % % %=8 c \ n ", d, d);
return 0;
}
In this case:
Line 11 in four different formats the output value of the integer variable a, including "% 5 d" output width is 5, and a value of 15 only two reason for three Spaces,
Line 14 in four different formats real output the value of b, among which "% f" and "% lf format of the output is the same," show "l" symbol for "f" type, "% 5.4 lf" specified output width is 5, the precision of 4, because the actual length more than 5 should be according to the actual digit output, decimal digits over the four parts of amputated,
Line 17 output double-precision real, "% 8.4 lf" because the specified precision for four so take more than four of the part,
Line 20 characters output d, of which 8 "% c" to specify the output width of 8 reason in the output characters p before adding seven Spaces,