Standard Input / Output

Standard output

  • puts - adds a newline after each argument
  • print - does not add a newline after each argument
  • printf - formatted output (like in C and Perl)
$stdout << 1 << 2 << "\n"

Standard input

  • gets - get the next line of input
  • scanf