Reputation:
I want to write a C++ program in Xcode on my Mac. I wrote this basic one to test it. When I build, I get a "Build Successful" message.
However, I cannot run it! If I hit Command+R nothing happens. When I go to Project->Run the Run option is disabled.
#include <iostream>
using namespace std;
int main()
{
cout << "helo" << endl;
}
Upvotes: 31
Views: 100785
Reputation: 7336
At the bottom of the screen, under All Output you should see:
Hello, World!
Program ended with exit code: 0
Upvotes: 74