[SOLVED] CS计算机代考程序代写 // from: http://www.cplusplus.com/doc/oldtutorial/namespaces/

30 $

File Name: CS计算机代考程序代写_//_from:_http://www.cplusplus.com/doc/oldtutorial/namespaces/.zip
File Size: 857.22 KB

SKU: 9742349163 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


// from: http://www.cplusplus.com/doc/oldtutorial/namespaces/
#include
using namespace std;

namespace first{
int x = 5;
int y = 10;
}

namespace second{
double x = 3.1416;
double y = 2.7183;
}

int main() {
//from now on, x refers to first::x
using first::x;
//from now on, y refers to second::y
using second::y;
cout << x << endl;cout << y << endl;cout << first::y << endl;cout << second::x << endl;return 0;}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS计算机代考程序代写 // from: http://www.cplusplus.com/doc/oldtutorial/namespaces/
30 $