most likely some simple scripting support std::map should be enough ...
【在 c*****t 的大作中提到】 : You should tell us what you are really trying to do.
O*e
11 楼
There is the # operator in cpp/fpp, but I don't think that this is what you want. This would be preprocessed, not C or Fortran language proper. #define show_int(x) printf(#x" = %d\n",x) #include int main () { int x=5; show_int(x); return(0); } #define show_int(x) print'(a," = ",i0)',#x,x program main integer::x=6 show_int(x) stop end program main