0

I want to use Xcode to create a single cpp file to do my assignment, instead of creating a whole project with several files and directories, is there anyway to do it? Thanks.

3
  • 1
    Are you in school to learn? Creating a "whole project with several files and directories" would be a great way to do it. If you don't enjoy doing such stuff, perhaps you should re-evaluate your career path. Commented Jun 8, 2013 at 5:13
  • @HalR the question I answered, and the one that I think the OP is asking is how to create a project in xcode that isn't an ios or mac app, but instead one that runs in the command line Commented Jun 8, 2013 at 5:36
  • My son is a college student interested in "maximizing his relaxation". I think that puts a filter on how I view some things :) Commented Jun 8, 2013 at 5:39

2 Answers 2

1

Create a command line app at the start, it may still generate some other things but it should give you what you want. You can also use xcode as solely a text editor and still get some of it's features

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you, I really mean to create a program that runs in the command line.
Yes this runs in the command line, if the answer helped you you can accept it @Sequoia
0

For that purpose don't use XCode.

Just create cpp file with text editor (GUI text editor or command line vi, vim, etc...)

And compile it

 g++ mysource.cpp -o mysource.out

and run

 ./mysource.out

If you want to use some syntax highlighting you have to use more complex text editors or plugins. For debugging it's better to use XCode or any other IDE.

More features bring more performance drain.

You should try both options and decide which one to use.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.