如何运行C语言的可执行文件? [英] How to run an executable file with c language?

查看:519
本文介绍了如何运行C语言的可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用C语言编译器3.0的每一件事情会好起来执行该程序,但是当我运行这个程序,它永远不会打开Firefox,当我运行这个program`s可执行文件,它显示的兼容性问题的错误:(请帮助我

 #包括LT&;&stdlib.h中GT;
#包括LT&;&stdio.h中GT;
INT主要(无效)
{
 系统(C:\\\\ Program Files文件(x86)的\\\\ Mozilla Firefox浏览器\\\\ firefox.exe);
 返回0;
}


解决方案

看看在execve的功能:的 http://msdn.microsoft.com/en-us/library/hyw61wtd(v = VS.80)的.aspx

I was trying to execute this program using C language compiler 3.0 every thing is going alright but when i run this program it never open firefox and when i run this program`s executable file it shows compatibility issue errors :( please help me

#include<stdlib.h>
#include<stdio.h>
int main(void)
{
 system("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");
 return 0;
}

解决方案

Take a look at the execve function : http://msdn.microsoft.com/en-us/library/hyw61wtd(v=vs.80).aspx

这篇关于如何运行C语言的可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆