Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ namespace example

#include <iostream>
using namespace std;
namespace square{
	int x;
	int y;
}
int main(){
	using namespace square;
	x = 10;
	y = 0;
	cout << x << y << endl;
}
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #namespace
ADD COMMENT
Topic
Name
2+6 =