Character and String

'a' is different from "a" in C and C++! Not the case in Python as I have always learned it.

Newlines

Had a pain in the ass with A1 of CS138, but was definitely a good learning experience. This is based on how old carriages worked. They had both a line feed (\n), and a carriage return (\r) which goes from right to left

  • CR = carriage return
  • LF = line feed

Strings in C

Not very clean way to do it… an abomination as Derek Rayside calls it We use the <string.h>

Strings in C++

Much simpler with the #include <string> library.