Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Access namespace by unqualified manner
//clang 3.8.0 #include <iostream> using namespace std; namespace myNsp { int mult(int a,int b){ return a*b; } }; int main() { using namespace myNsp; cout<<mult(8,7); return 0; }
run
|
edit
|
history
|
help
0
UTF-8 in C++11
Graphs Iteration 2.1 Directed Graphs
STL Stack, C ++
Random values and probability distribution
std::reference_wrapper
6 7
Initialise arrays with N number
11/29
C++ Standard Template Library
Unlike C (even C99/C11), C++ allows initializers in if-conditions, so this compiles.