compile and run c++ code runtime
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Does anyone know how to compile your c++ code wich you write while your program is already running? And later i would like to run that code. I want to do this because I am trying to make a game that woul teach you programing and so the user would have to write the code while the game is running and test it. Thanks for any help 回答1: You'd have an easier time if you chose a language that was designed with embedding in mind - like LUA or python. For C++, you'd have to go for something extremely clumsy and fragile like invoking an external