PS 6

  1. Write a programme that pushes TFFTT back onto a vector of bools and then makes a second vector whose elements are the negation of the first; print out both.
  2. Amend the previous programme so that the negation is done in a function.
  3. Write a programme that asks the user to input a string then creates a vector of chars out of the string.
  4. Amend the previous programme to have it make a new vector with the characters in the other order; print out the original string backwards.
Submit the program you wrote to answer problem 1 and send it to tcd.ma1262@gmail.com both by cut and pasting it and as an attachment. Say if it compiles and put PS6 and your tutorial time in the subject line.

If you don't get your programme to compile write a comment saying it doesn't compile at the top of you code when you hand it in.