int num2 = 2; double result = num1 / num2; //result應該等於1.5 cout << "3 / 2 = " << result << endl;. //應該顯示為"3 / 2 = 1.5" system("PAUSE"); //結束.
確定! 回上一頁