#include "stdafx.h"
#include <iostream>
usingnamespace std;
int main ()
{
cout << 5 / 2;
cin.get();
return 0;
}
I'm using Visual C++ 2010 Express and the problem is it keeps rounding numbers. I get in this case a result 2! Is it the compiler or maybe something else?