Hi this can be done by converting your code to executable file.
For eg. In C#, if it is a windows application,in the project folder you can find a folder called BIN, which will contain the .exe file of your project files. Also for executing this from CD your lecturer should need to have the .Net Framework in windows OS.
It does not need .Net software to be installed.
Also for C++,if you have developed it using .Net framework then by the above procedure you can get the .exe for that too.
But for Java the process is different, In Java we don't have .exe files.But we have files called .jar. It is executable file for java programs.
For creating jar files you can follow the process from below link.
15 Million Students Helped!
Sign up to view the full answer