I\'d like to output some data to a file. For example assume I have two vectors of doubles:
vector data1(10); vector data2(10);
try this:
#define GET_VARIABLE_NAME(Variable) (#Variable)
//in functions
int var=0; char* var_name= GET_VARIABLE_NAME(var);