如何使用命令提示符下运行一个C程序 [英] How to run a c program using command prompt

查看:89
本文介绍了如何使用命令提示符下运行一个C程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何运行使用命令提示符在Win 7安装$ C $个cblocks,如果C文件的位置不是默认位置不同的C程序?


解决方案

  1. 编译和链接项目

  2. 打开命令窗口

  3. 更改目录中创建可执行文件,其中

  4. 运行可执行文件

How to run a c program using command prompt on win 7 with codeblocks installed and if location of c file is different than default location?

解决方案

  1. Compile and link the project
  2. Open a command window
  3. Change directory to where the executable is created
  4. Run the executable

这篇关于如何使用命令提示符下运行一个C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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