Whether it is through preprocessor directives, predefined identifiers, macros, custom functions, or data structures, developers have several options to choose from when it comes to converting variable names to
b,c,abc; char * p1; a=3; b=4; c=5; abc=a*b*c; p1=name_to_str(abc); printf("a= %d b= %d c= %d\n",a,b,c); printf("%s= %d %s= %d %s= %d\n",name_to_str(a),
public string gisoracle = "ok"; private void button2_Click(object sender, EventArgs e) { //通过字符串获得变量值 MessageBox.Show(this.GetType().GetField("gisoracle").GetValue(this).ToString()); //通过给变量赋值 this.GetType().GetField("gisoracle").SetValue(this, "gisoracle@126.com");...