How to change variable value without recompiling source code

Can any body tell me how to change inputs (variables) without recompiling source code?
for example I have a code and first I compile it, and then run or execute it. In order to change variables like number of iterations, I have to change it, then compile and run it.

take the arguments from the user at command line.
Another option is to have the values in a text file that the programme reads, and edit that text file.
Or you ask the user to input them interactively.
Also rand() comes to mind.

*SCNR*
Orl in Windoze programs, you can use their registry. A lot of Windoze programs make use of that and like DLL hell we have, we have our own Registry hell :P

No wonder "clean-up" programs are very popular on Windoze platform. CCleaner come to my mind :P
Edit: wrong thread...
Last edited on

Caligulaminus

you wrote in a wrong post.
Thanks writeonsharma.
Topic archived. No new replies allowed.