Taking Screenshots on a Mac

  1. Press Command+Shift+4. You will be presented with a cross-hair.
  2. Click and drag the mouse to highlight the area you'd like to take a picture of.

Your picture will be saved on the desktop as a .png image file, with a name like "Screen Shot 2018-05-08 at 11.14.58" which indicates the date and time the screenshot was taken. You might want to rename it and add ".png" to the end.

You may submit this file as-is to URCourses.
You may also rename it first and then submit to URCourses as required.


Preparing an Assignment for Submission

Most CS110 teachers want you to submit your C++ file, a screenshot plus any extra input, output or documentation files for a program in a .zip archive. This video shows you how to do that on a Mac.

Using Xcode on a Mac

To download Xcode on a Mac, click on https://developer.apple.com/xcode/ or go to the mac app store and search for Xcode. Please use the most recent version.

When starting a new project for CS110, choose "Command Line Tool," name your project, then click on "main.cpp" to see your template. Your input and output will occur in the console, in the "debug area" at the bottom of the workspace. If you cannot see the console. Press Command+Shift+C to activate the console.

Here's a video from January 2017 showing where to download Xcode and how to start using it:

And this video shows how to work with Input and Output files:

If your Mac is old, you might need to get an older version of Xcode:

Running Visual Studio on a Mac

You might find Visual Studio 20xx for Mac. It will not work for this class because it does not have C++, only a related Microsoft language called C#. If you want to run Visual Studio with C++ on a Mac, you also need to run Windows. You can run Windows natively on a Mac using boot camp:

or you can run Windows virtually using a program like Parallels or VMware Fusion: Lab#1

How to use SSH telnet on Mac

  1. Under Spotlight
  2. Type terminal
  3. Click on application Terminal
  4. Type ssh username@hercules.cs.uregina.ca
  5. If Pico doesn't work, type setenv TERM xterm then try again.