Miscellaneous Resources on COMP 251

Local newsgroup of COMP 251

Newsgroup hkust.cs.class.251

More C++ Examples

The followng examples are tar files. After you have downloaded the file, save it to a specific directory, and use the command:

to extract the archived files. For example, if you want to extract example 2, download the file example2 to a specific directory, and use the command

to untar the file.

Example 1

Example 2

Example 3

Example 4

C++ Resources

A very modest STL tutorial

Standard Template Library Programmer's Guide

Standard Template Library Programmer's Guide (Mirror Site)

C++ Techniques II

The Standard Template Library Tutorial

The Standard Template Library

The Standard Template Library Overview

Standard Template Library

More ML Examples

The following links contain solutions to Exercises 9.1 to 9.5 in Sethi. You are strongly advised to attempt the questions before looking up the solutions. In fact, if you have done your work, you DON'T need to check up these solutions, as you can always verify your answers with SML, which may even be a better choice as you may discover something new in the process. In addition, it also enhances your awareness to programming errors as you have gone through the pain of debugging them.

Please note that being able to understand the solutions does not guarantee being able to devise them on your own. The most effective way to prepare for examination is to give yourself sufficient time to practise before examination. It may turn out to be useless by simply looking up these solutions the night before examination, even if you have memorised everything in the notes.

If you have found errors in these solutions, or you have better and simpler solutions than these, you are welcome to inform cyl@cs.ust.hk. Thank you.

Exercise 9.1 in Sethi

Exercise 9.2 in Sethi

Exercise 9.3 in Sethi

Exercise 9.4 in Sethi

Exercise 9.5 in Sethi

Exercise 9.7 in Sethi

Exercise 9.8 in Sethi

Exercise 9.9 in Sethi

Exercise 9.10 in Sethi

ML Resources

ML_ABC.ps (last updated 26th March,1998)

ML_manual.ps

SML'97 Basis Library Documentation

Standard ML of New Jersey (A version of Standard ML for Windows 95 at this site)

The SFU Web Page for ML

A Gentle Introduction to ML (This link contains self assessment exercises; good for practising.)

Download SML for PC. (6,685,834 bytes)

Prolog Resources

Please ntoe that SWI Prolog can be invoked using the command 'pl' rather than 'prolog'.

Prolog_ABC.ps (last updated 3rd April, 1998)

SWI Prolog Information Sheet : Home Page for SWI Prolog.

SWI Prolog Reference Manual : Online Manual for SWI Prolog.

prolog:- tutorial : A very informative tutorial to Prolog (including a short notes on running Prolog).

Download SWI Prolog for PC. (770,073 bytes)