1.14
Copied!
#include "stdafx.h"
#include <iostream>
using namespace std;
namespace Demo {
int a; // Demo fazoda a oʻzgaruvchi
}
int x; // Global fazoda x oʻzgaruvchi
namespace Demo {
int b; // Demo fazoda b oʻzgaruvchi
}
using namespace Demo;
int main(){
a = b = x = 101;
cout << a << " " << a << " " << x << endl;
system("pause");
return 0;
}
Run on cpp.sh
Copied!