What function do I use in Xcode?
Hello I am starting some lessons on C++
I use an Apple Computer
IMac desktop
Problem is last simple program I got to work on my old Windows computer
when i run it i got the 2nd window to pop up.
When I run it on my MAC using Xcode. When i run and build
i get message of "build succeeded" which is good
but no second screen of the program working
here is the actual code
Ok Now I got Xcode to work.
I am not able to get the separate screen to work when i run a simple program.
So here is my program just a Helloworld program
[CODE]
#include <iostream.h>
int main()
{
int mynumber;
mynumber = 34
cout << " my number is ";
cout << "Hello world!" << endl;
cout << mynumber;
system("pause");
return 0;
}
[/CODE]
So when i run it in Xcode, it works. it says build Succeeded
however i am supposed to get a second pop screen like a command prompt, like same when i run program on my Windows computer
that has "hello world" and 34 etc.
What function on Xcode do i use to make this happen?
thanks
IMAC, new IMAC