怎样用C/C#43;#43; 把[人民币数字]转化成[人民币大
以下内容是CSDN社区关于怎样用C/C#43;#43; 把[人民币数字]转化成[人民币大写]相关内容,如果想了解更多关于C++ 语言社
ios_base::floatfield); cout.precision(2); cinRMB; int a1,不完整,b,s[20]; b(int)(RMB*100); while(b!0) { s[i]b%10; i; bb/10; } int *pnew int[i]; for(int ji-1;j0;j--) { p[i-1-j]s[j]; } for(int m0;mi;m) { coutp[m] ; } return; } 只是从高位到低位顺序输出各位数字,还望高人指点. ,i0,。
#includeiostream using namespace std; void main() { double RMB; coutPlease input the numbers of RMB:\n; cout.setf(ios_base::showpoint); cout.setf(ios_base::fixed。
相关文章
广告位
评论列表