當你用不管什麼辦法篹出{a,b,c,d}後,你應該會想另外寫一個程式把它們輸出:
做cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";
223次(如下)
cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";
cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";
cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";
cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";
cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";
cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";
cout<<"Cube = <<a<<" Triple = ("<<b<<','<<c<<','<<d<<")\n";...........
但這樣原始碼會過大,所以我用:
a[223] = {..............};
b[223] = {..............};
c[223] = {..............};
d[223] = {..............};
for(unsigned short i = 0;i<223,i++){
cout<<"Cube = <<a[i]<<" Triple = ("<<b[i]<<','<<c[i]<<','<<d[i]<<")\n";
}
這樣才會過^_^
這題本來就不是希望你在事前將答案算完而上傳的程式只負責輸出的,
正確的做法答案應該是在你的程式中將算出來才對。