lab2.txt - ICT374 Lab 2 Introduction to GCC and C Programming Learning Objectives Learn to create simple C programs with a text editor such as vi or

lab2.txt - ICT374 Lab 2 Introduction to GCC and C...

This preview shows page 1 - 2 out of 3 pages.

ICT374 Lab 2: Introduction to GCC and C Programming Learning Objectives: Learn to create simple C programs with a text editor such as vi or pico; Learn to compile C programs with gcc; Learn to use the standard library functions printf, fgets, exit etc.; Learn to use standard input (stdin), standard output (stdout) and standard error (stderr). Required Reading: Lecture Notes for Topic 1 LINUX: Rute User's Tutorial and Exposition (or just Rute for short): Chapter 4: Basic Commands. A mini manual for vi editor Access to Software: Internal students will use the lab machines 245.3.063 (See Lab 1 for instructions on using the lab machines). You should bring a USB flash drive with you to the lab for copying your files from the lab machine. For external students, if you have already installed Linux, then use your own Linux installation. If you have not yet installed your own Linux, you may use our Linux server (ceto.murdoch.edu.au) temporarily until you have installed the Linux on your machine (see Lab 1 for detail). More information on how to install Linux is available from Unit Resources page of this website. Theory Exercises Stallings (8th and 9th Edition) : Problems 1.3, 1.7, and 1.12 C Programming Exercises Note, all exercises must be done via the terminal commands, not GUI tools. Do not use any IDE to build your programs. Do not use GUI file managers to manage your directories and files. Also each exercise should be in a separate directory, which itself is under a directory called lab02 Use command mkdir to create a new directory named lab02 under your home directory: % cd % mkdir lab02 In the above example, the symbol "%" denotes your shell prompt. Your actual
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • One '14

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture