输入样例2: -125 输出样例2: -7D 3. 源码参考 #include<iostream>using namespace std;#defineMAXN 10voidf(longintx,char*p);intmain(){longintx;chars[MAXN]="";cin>>x;f(x,s);cout<<s<<endl;return0;}voidf(longintx,char*p){intk,a;inti,n;chart[MAXN]="";k=0;if(x<0){p[k++...