CMakeLists.txt is where you would store your build scriptcmake_minimum_required(VERSION 3.0)
project(Demo1)
add_executable(Demo1 demo1.cpp)
makenamespace someNamespace {
double value = 3.14;
}
int main() {
std::print("Value: {}", someNamespace::value)
return 0
}
using namespace someNamespace to make everything in that namespace appear as if it was in the global namespace, helpful to remove syntactic cluttering&, e.g. double sqrt(double& y)
double const& y to promise that the argument isn’t changed