Hi everyone,
I'm new to C++ programming, and have started learning the language on a compiler on a PC. However, I want to be able to use my Mac, so have set up XCode, and started fiddling around with it.
I find that I'm not able to always use the same statments I would use on my PC in XCode. For example, I use the statement, system ("pause"); on my PC, which makes the program "freeze" the display once the program has run, so that the user can see it. In XCode, it seems that might almost not be necessary, since everything can just be viewed in the consoler. But is there something similar?
Also, when I write code on my PC, I write it in .cpp documents, and then once compiled and run, there is an .exe file that a user can click on to run the program. What is the equivalent output file in XCode, and where can I find them?
Thanks!
I'm new to C++ programming, and have started learning the language on a compiler on a PC. However, I want to be able to use my Mac, so have set up XCode, and started fiddling around with it.
I find that I'm not able to always use the same statments I would use on my PC in XCode. For example, I use the statement, system ("pause"); on my PC, which makes the program "freeze" the display once the program has run, so that the user can see it. In XCode, it seems that might almost not be necessary, since everything can just be viewed in the consoler. But is there something similar?
Also, when I write code on my PC, I write it in .cpp documents, and then once compiled and run, there is an .exe file that a user can click on to run the program. What is the equivalent output file in XCode, and where can I find them?
Thanks!