
Sidebar: the iOS platform and its variants require Objective-C or Swift for application integration, and though it's common to add C++ code to such projects, one usually doesn't start in (or stay exclusively in) C++, so the path to "just using C++" isn't as obvious for those platforms as it is for OS X. To create more C++ source files for your project, use New > File and select C++ File under Source for OS X. You'll have a single main.cpp source file to start with. Select New Project, then under OS X select Command Line Tool, and select C++ as the language. If you don't have answers to these questions yet, and you just want to work on algorithms in C++, I recommend targeting OS X and building a Command Line Tool.


What do you want to build: an application, a command line executable, or a library? And, what platform do you want to target: OS X, iOS, or one of the iOS variants?
