大整數(shù)乘法——簡(jiǎn)單
摘要:
寫(xiě)這個(gè)程序的時(shí)候有三個(gè)關(guān)鍵點(diǎn),知道了這個(gè),你Win, Or, 你Lose!我將它們一一注釋在了代碼中。View Code #include "iostream"#include "cstring"#include "string"using namespace std;#define maxlen 200int a[maxlen]; int b[maxlen]; int c[2*maxlen+1]; //這個(gè)地方也是個(gè)關(guān)鍵,一定要多加一個(gè)正數(shù),不然錯(cuò)string s1;string s2;int main(){ while(cin&g 閱讀全文
posted @ 2011-10-12 11:24 More study needed. 閱讀(318) 評(píng)論(0) 推薦(0)
浙公網(wǎng)安備 33010602011771號(hào)