Skip to Content
C语言核心技术(原书第2版)
book

C语言核心技术(原书第2版)

by Peter Prinz, Tony Crawford
August 2017
Intermediate to advanced
798 pages
17h 44m
Chinese
China Machine Press
Content preview from C语言核心技术(原书第2版)
770
|
第
22
章
图22-1:Open Perspective图标
22.3 使用Eclipse开发一个C程序
对于每一个
C
程序而言,必须先创建一个项目。在项目中,
Eclipse
会保存所有的必要信
息,以创建程序。
22.3.1 创建一个新的C项目
要创建一个新的
C
项目,打开
C/C++
透视图,选择
File
→
New
→
C Projcet
。在出现的对
话框中,为项目输入一个名称(例如,作为第一个尝试项目,命名为
First
)。在
Project
Types
(项目类型)选项下,选择类型的
Executable
→
Empty
类型(或
Hello World ANSI C
项目)以及编译器工具链,如
Cygwin GCC
。
Eclipse
会自动检测安装在系统上的
C/C++
工
具链。如果在
Windows
上同时安装了
Cygwin
和
MinGW
,那么两者都会显示以供选择。
单击
Next
(下一个)按钮,打开
Select Configuration
(选择配置)对话框。保持默认选
项以为当前程序建立
Release
(发布)和
Debug
(调试)版本。单击
Finish
(完成),新
项目将出现在左边的项目资源管理器(
Project Explorer
)面板上。
如果要将一个新的
C
源文件添加到项目,在项目资源管理器中右键单击,并在右键菜
单中选择
New
→
Source File
。如果希望建立一个新的子目录,在右键菜单中选择
New
→
Source Folder
。在默认的工具栏中也有这些图标。
22.3.2 编辑
当创建一个新的源文件时,它会自动在编辑器面板中打开。要编辑尚未打开的源文件, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据库系统内幕

数据库系统内幕

Alex Petrov
精通機器學習

精通機器學習

Aurélien Géron
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
算法精讲视频课程:24篇系列讲座

算法精讲视频课程:24篇系列讲座

罗伯特·塞奇威克, 凯文·韦恩(Kevin Wayne)

Publisher Resources

ISBN: 9787111562207