Become a MacRumors Supporter for $25/year with no ads, private forums, and more!
  • Did you order new AirTags? We've opened a dedicated AirTags forum.

Duroduto

macrumors newbie
Original poster
Nov 18, 2013
1
0
Hello, everyone:

I am starting to learn C++ on my Mac, and when I downloaded the new XCode 5, I couldn't figure out how to run a C++ file! I know that you go to OSX -> Application -> Console Application -> C++, but how do I edit the file from there? Also, how do I build and run the file?

And I have previous knowledge of like Java and Python and others, so please do not reply saying: "Oh noes! You shouldn't learn C++ if your a noob!"

Thanks,
Duroduto :)
 

Blakeasd

macrumors 6502a
Dec 29, 2009
643
0
In the left-most sidebar you should see a list of files in the project. From their you should see a .cpp file. To edit it, select it and it should appear in the editor. To build and run, click the button at the top of the window that looks like a play button.

Hopefully that helps!
 
Comment

gnasher729

Suspended
Nov 25, 2005
17,945
5,494
Hello, everyone:

I am starting to learn C++ on my Mac, and when I downloaded the new XCode 5, I couldn't figure out how to run a C++ file! I know that you go to OSX -> Application -> Console Application -> C++, but how do I edit the file from there? Also, how do I build and run the file?

And I have previous knowledge of like Java and Python and others, so please do not reply saying: "Oh noes! You shouldn't learn C++ if your a noob!"

Thanks,
Duroduto :)

Did you look through _all_ the Xcode menus?
Did you find one that says "Build"?
Did you find one that says "Run"?
Did you find any menu items that lead you to documentation?
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.