//#include <stdafx.h>
#include <cstdlib>
#include
<iostream>
using namespace std;

namespace anamespace
{
int x;
void SetX(int xvalue)
{

x
= xvalue;
cout
<<x<<endl;
}
};

namespace anothernamespace
{

int x;
void SetX(int xvalue)
{
x
= xvalue;
cout
<<x<<endl;

}
};

int main()
{
anamespace::SetX(
5);
anothernamespace::SetX(
10);
return 0;

}

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-02-03
  • 2022-01-13
  • 2022-02-15
猜你喜欢
  • 2021-10-28
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2023-01-28
  • 2021-05-08
  • 2022-12-23
相关资源
相似解决方案