Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 18, 2013, 05:53 PM   #1
Duroduto
macrumors newbie
 
Join Date: Nov 2013
Building and Running C++ Code from within XCode 5

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
Duroduto is offline   0 Reply With Quote
Old Nov 18, 2013, 06:24 PM   #2
Blakeasd
macrumors 6502a
 
Join Date: Dec 2009
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!
Blakeasd is online now   0 Reply With Quote
Old Nov 19, 2013, 04:16 PM   #3
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by Duroduto View Post
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?
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How to code a newsfeed in Xcode ebbandflow1 iPhone/iPad Programming 0 Jan 9, 2014 03:35 PM
Building XCode in Textmate francis21 iPhone/iPad Programming 1 Dec 25, 2012 08:41 PM
Resolved: Building for iOS 4.2+ in Xcode 4.5.1 nickculbertson iPhone/iPad Programming 3 Oct 24, 2012 04:12 PM
Xcode telnet code MagicJordan iPhone/iPad Programming 0 Oct 8, 2012 05:01 PM
Code stops running in Xcode if input stream is long skatedate22 Mac Programming 6 Jul 10, 2012 03:44 AM

Forum Jump

All times are GMT -5. The time now is 09:29 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC