這裏是我的代碼:我如何用C++小數,如果我使用整數變量
class Division{
public:
void div(){
//This is what to use inside the main
//Division Divide;
//Divide.div();
int x;
int y;
int div;
cout << "Still in Alpha So it only rounds the Number\n";
cout << "Enter Your Number\n";
cin >> x;
cout << "Divided by\n";
cin >> y;
cout << "=";
div = x/y;
cout << div;
爲什麼downvote? – 2014-12-03 13:55:49
我也在想他 – 2014-12-03 13:58:04