2. File --> New --> Project ...
3. Choose OS X --> Application --> Command Line Tool
(click to enlarge) |
4. Next
5. Product name should be whatever you like
6. Organization name should be your name
7. Organization identifier should be com.yourname (insert your own name)
8. Language should be C++
(click to enlarge) |
9. Next
10. Choose "Desktop" for the location
11. Create
You'll get a project that has a main.cpp file. That file should look like this:
// // main.cpp // Week3homework // // Created by Mark Brautigam on 9/12/16. // Copyright © 2016 Mark Brautigam. All rights reserved. // #include <iostream> int main(int argc, const char * argv[]) { // insert code here... std::cout << "Hello, World!\n"; return 0; }
Note that this code looks a lot like the template code I gave you in another post.
No comments:
Post a Comment