I want to access x(100) and Y(200) into member function(fun()) - how to do that?
Code:#include<iostream> using namespace std; int x=100; int y=200; class A { int x; int y; void fun(int x, int y) { cout<<x<<endl<<y<<endl; } }; int main() { A o={3,5}; o.fun(78,56); return 0; }