Skip to content

Instantly share code, notes, and snippets.

@romanegloo
Last active March 29, 2019 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romanegloo/4e62f3baa0f0aaf8930bbc76f6e2e04b to your computer and use it in GitHub Desktop.
Save romanegloo/4e62f3baa0f0aaf8930bbc76f6e2e04b to your computer and use it in GitHub Desktop.
lab8 note

Lab 08

instruction note (lab8)

Lab 9 is canceled (lab 8 is extended by a week)

Reviews

  1. include contact.h from contactList.h. Use double quotation marks
  2. #pragma once tells the compiler to include the source code only once
  3. All members are private, all methods are public
  4. constructor is a method
  5. you may define global constant variables for these: MAX_CONTACTS and NOT_FOUND
  6. interface goes to a header file (.h), implementation goes to a source file (.cpp)

To Demo, Type the following commands and show the results at once.

2
33
3
Sam
4
6
5
Friends of Mine
1
Adam
1111
1
Betty
2222
1
Carol
3333
1
Debbie
4444
1
Eddie
5555
1
Trouble
6666
4
6
2
5
2
3
3
Freddy
3
Betty
  • Compare the results against the one in the instruction note.
  • Don't forget a comment box for each header file and the main function
  • When you have a LINK ERROR issue, ask me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment