EC

  • Edwin Chan
  • CV
  • CPSC 233
  • CPSC 331
  • CPSC 355
  • CPSC 581
  • Origami
  • Random

A5 scripts

NOTE: These are for my tutorials ONLY (T03/T06). You should check with your own TA to see what they are expecting, since they will be grading your assignments.

For the scripts, you don't have to use gdb at all.
For part A:
  1. pop a number, should display an underflow error
  2. push 6 numbers, should display an overflow error
  3. pop 2 numbers
  4. display, should show 3 numbers in the stack, with the top of the stack displayed as well
  5. exit
For part B:
  1. ./a5b 9 11 1990     no errors
  2. ./a5b -9 -11 1990   error for either month or day, should not crash
  3. ./a5b 99 111 1990   error for either month or day, should not crash
  4. ./a5b               error for invalid arg count
Timber by EMSIEN 3 Ltd BG
  • Edwin Chan
  • CV
  • CPSC 233
  • CPSC 331
  • CPSC 355
  • CPSC 581
  • Origami
  • Random