Learn C language using Xcode under Mac OS X. Xcode is an apple-opened IDE that supports C, C + +, objective-c, Swift, and so on, and can be used to open up applications on Mac OS X and IOS. Xcode finally uses GCC as the compiler, and because of GCC's non-joint venture, switch to LLVM.
Xcode is a complex device that can be downloaded directly from the APP Store, and is not mentioned here.
Running C speech program on Xcode
working on Xcode C speech program needs to create a project, and then add the source code in the project.
1) Open Xcode and select "Create a new Xcode project" to create a project as shown in:
650) this.width=650; "src=" http://c.biancheng.net/cpp/uploads/allimg/160308/1-16030Q42SQR.jpg "style=" border:0px; Color:rgb (51,51,51); font-family: ' Microsoft Jas Black ', ' Microsoft Yahei ', Arial, Helvetica, Sans-serif;font-size:14px;line-height : 21px;white-space:normal;width:728px;height:427px; "/>
2) Next, select the project type created by the summary as shown in:
650) this.width=650; "src=" http://c.biancheng.net/cpp/uploads/allimg/160308/1-16030Q43112M0.jpg "style=" border:0 Px;color:rgb (51,51,51); font-family: ' Microsoft Jas Black ', ' Microsoft Yahei ', Arial, Helvetica, sans-serif;font-size:14px; line-height:21px;white-space:normal;width:728px;height:517px; "/>
3) Select "OS X---Application Command line Tool" and click "Next". Command line tool is the meaning of the "royal Decree", that is, the mastery of the Taiwan program.
650) this.width=650; "src=" http://c.biancheng.net/cpp/uploads/allimg/160308/1-16030Q45606353.jpg "style=" border:0 Px;color:rgb (51,51,51); font-family: ' Microsoft Jas Black ', ' Microsoft Yahei ', Arial, Helvetica, sans-serif;font-size:14px; line-height:21px;white-space:normal;width:728px;height:517px; "/>
Here are some information that needs to be filled out and project coherent:
Product Name: Product title, the title of the project.
Organization Name: The title of the Organization, that is, the company, Group, association, team and so on.
Organization Identifier: An organizational identifier, which is a symbol that differs from other organizations, such as a social security number, a company URL, an organization code card, and so on.
Bundle Identifier: The program identifier, which is a flag that differs from other programs, is composed of Organization Identifier + Product Name.
Language: The programming language used in the project, choose c speech here.
4) Click "Next", save the file can enter the future project, as shown:
650) this.width=650; "src=" http://c.biancheng.net/cpp/uploads/allimg/160308/1-16030Q45F4V8.jpg "style=" border:0px ; Color:rgb (51,51,51); font-family: ' Microsoft Jas Black ', ' Microsoft Yahei ', Arial, Helvetica, Sans-serif;font-size:14px;line-height : 21px;white-space:normal;width:728px;height:392px; "/>
on the left is the project catalog, which includes the documents and capital used in the project. Click "Main.c" to enter the code compilation form, where Xcode has created a "Hello World" applet for us. Click on the "Run" button above to see the input results in the tabs on the lower right corner.
This article is from the "11999725" blog, please be sure to keep this source http://12009725.blog.51cto.com/11999725/1843290
Running C speech programs on an Apple computer