Hi,
I am trying to learn programming in C++ with xcode I have no prior programming knowledge & I am learning from online tutorials.
The first lessons is very basic this is the command:
#include <iostream>
using namespace std;
int main()
{
cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
cin.get();
}
I did a little research online & found I should be building in C++TOOL
so I launched this & opened the main.cpp file, I deleted what was inside & replaced it with the command above.
I then clicked Build & Go, it asked me to save so I did & then it seemed to run fine (it said Success in the bottom right corner) but nothing happened?
no window showed up, no text was displayed, nothing.
am I doing something very stupid or do I have a problem somewhere.
any help would be much appreciated & as I'm new to this board & new to programming.
Thank You
I am trying to learn programming in C++ with xcode I have no prior programming knowledge & I am learning from online tutorials.
The first lessons is very basic this is the command:
#include <iostream>
using namespace std;
int main()
{
cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
cin.get();
}
I did a little research online & found I should be building in C++TOOL
so I launched this & opened the main.cpp file, I deleted what was inside & replaced it with the command above.
I then clicked Build & Go, it asked me to save so I did & then it seemed to run fine (it said Success in the bottom right corner) but nothing happened?
no window showed up, no text was displayed, nothing.
am I doing something very stupid or do I have a problem somewhere.
any help would be much appreciated & as I'm new to this board & new to programming.
Thank You