S
saneman
I am trying to call gnuplot from C++. I have to make a system call
containing the command and path to a data file:
std::string path_to_data = "c:\\data.txt";
std::string gnuplot = "wgnuplot.exe";
std::string gnuplot_call = gnuplot + " " + path_to_data;
system(&gnuplot_call[0]);
But system wants a char*. Is there anyway to make the above more
simple/readable?
containing the command and path to a data file:
std::string path_to_data = "c:\\data.txt";
std::string gnuplot = "wgnuplot.exe";
std::string gnuplot_call = gnuplot + " " + path_to_data;
system(&gnuplot_call[0]);
But system wants a char*. Is there anyway to make the above more
simple/readable?