现在的位置: 首页 > 综合 > 正文

lcc-win32使用指南

2013年01月01日 ⁄ 综合 ⁄ 共 352字 ⁄ 字号 评论关闭

 

下载完lcc-win32后,双击打开,新建工程,名字:test

然后点击Browser 选择Path路径[Output directory会自动出来]

注意:这里的路径不能先lcc-win32安装的路径,否则编译时会出错,

我先的是d:"temp,

Output directory 会自动变为 d:"temp"lcc

2.type of project 选择console application 然后点击create

3.出现是否根据向导产生,选择否

4.输入文件名比如hello.c,注意扩展名,之后直接next-finish

5.hello.c中,输入源程序

#include <stdio.h>

void main()

{

   printf("hello world!"n");

}

6.先保存,F9编译,ctrl+F5查看运行结果,F5调试

抱歉!评论已关闭.