Is there a way to output the names of declared variables in C++.
For example, if I have a program where I declare variables:
I want a way to output the names of specified variables,
so if name is the function that takes in some variable type I can do:
cout<<"Variables used are "<<name(i)<<" and "<<name(j);
so when running the executable I get:
Variables used are i and j.