网站介绍:文章浏览阅读317次。#includeusing namespace std;string Minus(string a,string b){string ans="";string tmp="";char cc;for(int i=a.length();i{tmp+="0";}a=tmp+a;int c=0;for(int i=b.length()-1;i>=0;i_ans[i]=ans[i].substr(0,ans[i].length()-1);
- 链接地址:https://blog.csdn.net/silence401/article/details/78697135
- 链接标题:大数减法_ans[i]=ans[i].substr(0,ans[i].length()-1);-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9047
- 网站标签:ans[i]=ans[i].substr(0 ans[i].length()-1);