How is it possible to use pow without including cmath library
问题 I'm trying to learn C++ and I'm using MS Visual Studio 2019. I have the code below: #include <iostream> int main() { std::cout << pow(10, 2); } How is it possible to compile and run without error without including cmath ? Inside the solution there is only one file with the above code. 回答1: How is possible in C++ to use pow without include cmath library By including another header that includes the <math.h> header. There is no guarantee that standard library headers won't include other headers