1

when I run a simple C++ program on Xcode, the compiler says it's built successfully, but there is no output. how can I make the result show up? thanks!

2
  • Are you talking about text output (like in a terminal window), or binary output (like a library or executable)? Commented Oct 28, 2011 at 19:27
  • i'm talking about text output Commented Oct 28, 2011 at 19:41

2 Answers 2

2

Cmd-Enter is the default "build and run" keyboard hotkey. Once you've pressed that, use Cmd-Shift-R to open the console and see your program's output.

Sign up to request clarification or add additional context in comments.

Comments

1

in the tab Groups and file, under the xcode icon of your project there are 3 folders, Source, Documentation, Products, under Products there is your executable. hth

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.