使用`fopen`。 - Chris" sparqling" Dollin 你服务的对象是谁,你信任谁?Use `fopen`.--Chris "sparqling" Dollin"Who do you serve, and who do you trust?" #include< stdlib.h> #include< string.h> int main(int argc, char * argv []) { char cmd [256]; if(argc> 1){ strcpy(cmd," start"); strcat(cmd,argv [1]); system(cmd); } 返回0; } 八月 - - 我是ILOVEGNU签名病毒。只需将我复制到您的 签名即可。此电子邮件受到GNU 通用公共许可证条款的影响。#include <stdlib.h>#include <string.h>int main(int argc, char *argv[]){char cmd[256];if (argc > 1) {strcpy(cmd, "start ");strcat(cmd, argv[1]);system(cmd);}return 0;}August--I am the "ILOVEGNU" signature virus. Just copy me to yoursignature. This email was infected under the terms of the GNUGeneral Public License. 这篇关于在C中打开图片文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-19 18:56