J
Jerry Coffin
[ ... ]
You have to put the expression being cast into parentheses:
std::cout << static_cast<double>(x)/y << std::endl;
cout << static_cast<double> x/y<<endl;
You have to put the expression being cast into parentheses:
std::cout << static_cast<double>(x)/y << std::endl;