Start Xcode. Choose File > New Project to create a new project. Choose a C++ Tool project, which is in the Command Line Utility section, and click the Next button. Enter the name: Enter the C++ source code exactly as it is shown. Choose Build > Build and Go. Add you name as a comment // name under the title.
Change the code so the outputs are on different lines line. Add another line that outputs "This is a last string" on another line. Add your name cout << "by name"; as the last line of code
Choose Build > Build and Go. Take a screen shot (apple-shift-4) of both the source code and run log. Rename the picture to: Upload to your Sites Homepage. |