I have read all prior answers to similar questions and they all seem to pertain to displaying output for a Command Line project. What if you'd like to run as what Xcode calls a 'Empty' (project with no files, targets or build configs).
The code below builds successfully. And yet the 'All Output' console still does not show the results. I tried to go deep into the GDB documentation but I'm a newbie and I get lost in it.
Below is the code:
#include <iostream>
using namespace std;
int main()
{
cout << "Come up and C++ me some time.";
cout << endl;
cout << "You won't regret it!" << endl;
std::cout << "Press any key to continue." <<endl;
cin.get();
cin.get();
return 0;
}
What makes it worse is that the teacher of my C++ class has no solution for this after 3 attempts.