我正在尝试使用popen在64位windows中使用已经安装的gnuplot.exe
在我的C程序中,我使用了如下示例
FILE *gnuplot = popen("C:\\Program Files (x86)\\gnuplot\\bin\\gnuplot.exe", "w");但是,在Windows命令行中无法识别文件路径。我在windows上使用Geany,它会给出以下输出。
[

]
如何使C程序获得正确的文件路径?
发布于 2017-04-11 00:53:11
popen需要一个外壳命令,所以您想要传递
"C:\Program Files (x86)\gnuplot\bin\gnuplot.exe"这是通过以下方式实现的
popen("\"C:\\Program Files (x86)\\gnuplot\\bin\\gnuplot.exe\"", "w")https://stackoverflow.com/questions/43328498
复制相似问题