How to run a program at the school or from home

Software

The C compiler that is available at the school is part of Microsoft Visual C++.

The labs that have Microsoft Visual C++ software are

There may be other labs that have this software.

You do not have to work on your programs at school if you have a C compiler at home. You do not need to use  Microsoft Visual C++. However, if you use some other software, then it is your responsibility to make any modifications to your source code before you hand it in so that it will run in Microsoft Visual C++.

Creating a new project

If you follow my suggestion in Saving Source Files below, then you will need to create a new project each time you want to work on your project.

To start a new project in Microsoft Visual C++,

Opening a previous project

If you are working at home or in the JCCL, then you can use the same project workspace over and over again.

Adding a file to a new project

Once you have created a project, you will need to add your source file to it. There are two possibilities

  1. You are starting a new project, and need to create a new source file.
  2. The source file already exists and you want to add it to the project.

Saving Source Files

I recommend that you always save your source files on the A:\ drive when you are working in a lab at school other than the JCCL.

However, do not save your project files on the A: drive, since there isn't enough storage even for the simplest of C programs.

So, save the project information in teh default location, but save your source files in A:\.

There is another issue at stake here: if you save your source (.c) files in c: drive, then they will be accessible by the next person to use the computer that you vacate. They could copy your code without your knowlege. However, this doesn't exonerate you if your code is copied. Do not leave copies of your source on the C: drive. The safest thing to do is to delete your project file whenever you are vacating a computer