// littleHat.cc
// the little hat does NOT do exponentiation
// as it might in some other languages.

#include <iostream>
using namespace std;

#include <cmath>

int main(void)
{
  int a = 2^3;

  cout << a << endl; // does this print 8?

  int b = 3^5;

  cout << b << endl; // does this print 3 to the 5th power?
  // no it prints 6 if my understanding of binary
  // and of the truth table for xor is correct, because
  // ^ means xor, not "to the power of"


  cout << "here then, truly is 3 to the 5th: " << pow(3.0, 5.0) << endl;

  return 0;
}

