can we compile b.cpp by running a.cpp?
i have koolplot project to draw plot.
this plot should appear in the middle of the program, and if the plot is closed, the whole program terminates immadiately. To avoid that, i tried to make 2 cpp files. One for the main, and the other one for creating the plot. Let's say the main is main.cpp, and one is plot.cpp.
User can input the function in main.cpp, and the plot.cpp should redraw the plot for different input. The problem is, after user input the function, plot.cpp should be recompiled again in order to be able to run plot.exe.
can someone help me with that? or do you have other suggestions rather than separate it into 2 files?
Thanks