I read all the previous answers to similar questions, and all of them seem to relate to displaying output for a command line project. What if you want to run what Xcode calls "Empty" (a project without files, goals, or configuration builds).
The code below completes successfully. Still, the All Weekend console still does not display results. I tried to delve into the GDB documentation, but I'm new to it and I got 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's even worse is that the teacher in my C ++ class has no solution for this after 3 attempts.
source
share