這麼簡單的 C++ 程式設計,出來的答案是 錯的!
有人知道 為什麼嗎?
答對的,送這裡的貨幣 10元!
#include <cstdlib>
#include <iostream>
using namespace std;
// ----------------------------------------------
int main(int argc, char *argv[])
{
int a, b, c;
a= 30000;
b= 80000;
c= a*b;
printf("a= %d, b= %d, c= a*b= %d \n", a, b, c);
system("PAUSE");
return EXIT_SUCCESS;
}// end of main()
|