c++ namespace 5 minutes, maybe 3 minutes
std::cout << std::endl;
std is a namespace.
namespace my_space { float x = 2.5f; } std::cout << my_space::x << std::endl;
namespace my_space::my_name { float x = 5.2f; } std::cout << my_space::my_name::x << std::endl;
namespace my_space { namespace my_star { float x = 2.5f; } } std::cout << my_space::my_star::x << std::endl;
Written on Oct 31, 2024
c++ std::exception:
std::cout.write(err.data(), err.size());
std::cout << std::endl;
caught:
================================================== # The c++ programming language. # # # # Home: cppfx.xyz # # Join c++ Discord: yZcauUAUyC # # Deck # ==================================================