CS1411 - 160 - Programming Principles I, Spring 2005

Lab assignment 8


This weeks you will practice multi-file sources

Mandatory work

Your TA will check that you have done the following things (you may leave once their done) :

String compare

Write a function that will compare a C-String and a C++-String. It should have a bool return value, and return true if both strings are equal and false if they are not.

Write a main function which tests both cases

Put it into a separate file

Put the function into a separate .cpp file. Add a header (.h) file that describes your function. Protect the header file against multiple inclusion. Use that header file in your main function to call your function.


Please check the labs page on how to get started. There are instructions for visual studio (use version 6) and XCode

Please give the Macs a try. If you simply cannot work with them, go to PE 119, but let your TA know.

Sample programs

have moved to the examples page


For help: ask your TA! He is here to help you!

If the instructions are unclear or you have any other questions, please email me