Hi,
This should
always work, try it with the gear icon, or copy / paste it (don't type it in) into a new file in XCode:
1 2 3 4 5 6 7 8
|
#include <iostream>
int main() {
std::cout << "Hello World!\n";
return 0;
}
|
If it works here, but not on your system - then something is going on in your system, or there is something you have done. If that is the case, post a screen shot again.
Crikey, it sounds as though you have lots of books :+) I guess you could go with whatever feels most comfortable for you. I have just been trying to point out best practices for you - right from the start. Although I guess I was doing that in the face of some very common though slightly bad conventions found in textbooks.
Edit:
I mean the following in the nicest most sincere way - so I hope you don't see it as negative criticism.
The other thing is, if something doesn't work then post the code and any errors here, and / or a screen-shot.
Prefer to do this, rather than say "It doesn't work" , or "the only one that worked had this"
It sounds as though you couldn't get anything I gave you to work, or what I was saying was wrong, and I haven't achieved anything at all through all of that correspondence through a large part of yesterday evening. This is a little frustrating from my point of view, because I know what I gave you does work 100%.
Don't worry I am not really upset or anything - much worse things have happened in my life - Ha ! :+)
Any way, Good Luck , we are all still here if you have any more questions.