Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- namespace first
- {
- int x = 10, y = 25;
- }
- namespace second
- {
- double x = 10.25, y = 25.52;
- }
- int main ( void )
- {
- using namespace first;
- cout << x << endl;
- cout << y << endl << endl;
- cout << second::x << endl;
- cout << second::y << endl << endl;
- system("pause");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement