Changing Class Variables in runtime?
问题 Let me give an idea of what I wish to do: I have a structure or class called student , which contains variables like int roll_no and int reg_no If the user wishes to add a new variable like char name at run time how can it be done? 回答1: Based on the word "Structure" and the variable declarations, I'm going to guess this question is about some flavor of C. How exactly to do this will depend on the language, but as a general rule, if the language is compiled (e.g. C/C++, Java), this is not