First time here? Check out the FAQ!
x

Problem with code on Mac

0 votes
asked by
edited by

I'm using the Mac OS. I'd like to see if the program will be running on the computer properly before I will purchase it. The program seems to run but I get no window and the whole thing is over in half a second. I've expected a window to pop up with a prompt, but no such thing happened. Here's the program:

OpenConsole()
Print("Press enter to exit")
Input()
End

What am I doing wrong?

1 Answer

0 votes
answered by (194k points)

This is actually a simple Purebasic script. It opens the console and then exits when Enter is pressed. The above example is the most simple code used in the Purebasic environment. I recommend using the book from Google to learn more about it and the IDE Purebasic programming.

Book info: http://goo.gl/C0V64k

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...