Professional Documents
Culture Documents
#include<iostream>
using namespace std;
namespace struct_adver
{
cout<<"The values:"<<endl;
cout<<"CTRP:"<<CTRP<<endl;
cout<<"TE:"<<TE<<endl;
cout<<Advertising::val<<endl;
cout<<"val now:"<<val<<endl;
return 0;
}
};
#include<iostream>
#include "struct2.h"
using namespace struct_adver;
using namespace std;
int Advertising::val;
int main()
{
nestStruct nst1, nst2; // structure declaration
nst1.getdata();
nst1.display();
nst2.getdata();
nst2.display();
return 0;
}