#include <iostream>
using namespace std;


void showSuit( int card ) {
  enum suits { diamonds, clubs, hearts, spades } suit;
  suit = static_cast<suits>( card / 13 );
  switch( suit ) {
  case diamonds: cout << "diamonds"; break;
  case clubs:    cout << "clubs";    break;
  case hearts:   cout << "hearts";   break;
  case spades:   cout << "spades";   break;
  }
  cout << endl;
}



int main() {

  double d = 65.6;
  int i = (double)d; // truncates
  char c = (char)i;  // uses ascii table

  cout << "d=" << d << endl;
  cout << "i=" << i << endl;
  cout << "c=" << c << endl;

  int j = static_cast<int>(d);
  cout << "j=" << j << endl;

  const int k = 75;
  int n = const_cast<int&>(k);
  cout << "k=" << k << endl;
  cout << "n=" << n << endl;

  showSuit( 49 );

}
