My code:
# include
#include
#include
#include
using namespace std;
Int main () {
Char chuan [10010].
The scanf (" % s ", chuan);
Int lenchuan=strlen (chuan);
If (chuan [0]=='-') {
Printf (" % c ", chuan [0]). }
Char a, [10010].//store digital
A [0]=chuan [1].
int i;//is E subscript
Int DNS=1;
For (I=3; Chuan [I]!='E'; I++) {
A [dns++]=chuan [I];//chuan [2] is a decimal point
}
Int len=strlen (a) - 1;//after the decimal point, the length of E before;
Int len11=strlen (a);
Int zhishu=0;
For (int j=I + 2; jZhishu=zhishu * 10 + (chuan [j] - '0');
}
If (chuan [I + 1)=='-') {
If (zhishu==0) {
For (int haha=1; HahaPrintf (" % c ", chuan (haha)); }} else {
Printf (" 0. ");
for(int x=0; xPrintf (" 0 ");
}
For (int vv=0; VvPrintf (" % c ", a (vv));
}
}}
If (chuan [I + 1)=='+') {
If (zhishu> Len)={
Printf (" % s ", a);
for(int x=0; xPrintf (" 0 ");
}
} else {
Int jj;
For (jj=0; Jj<=zhishu; Jj++) {
Printf (" % c ", a. [jj]);
}
Printf (". ");
For (int pp=zhishu + 1; PpPrintf (" % c ", a. [pp]);
}
}
}
return 0;
}
Ball ball bosses, mentality broke quickly,,,
CodePudding user response:
I hope review by agghh soonCodePudding user response:
Ok, I know that is a question of header files, to kneelCodePudding user response:
#include