A lot of Mac students in C language class has been under Windows with VS writing C programs, in fact, with Apple's own Xcode can be written in C + + command-line program, which is enough to meet the university curriculum learning and interview. So I'm going to show you how to write a C program in Xcode 7.3, as well as the main steps for debugging:
?
?
Operation Steps:
1. Open Xcode software, here I use the 7.3 version. The C++11 feature is supported as long as the version of Xcode is more than 7. So we don't have to worry about no STL, this way.
On the Welcome screen, click Create a new project, which is the same as the project we've been using:
2. Select Other application in the dialog box that pops up after, command? line tool Click Next 3, fill in the project name in product? name, the rest of the default is OK this can choose C language or C + +
4 Click the main function, replace the code you need directly, and click Run to compile and run the
?
Mac Os,xcode