Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Constructor

By: a guest on Dec 11th, 2012  |  syntax: C++  |  size: 0.46 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Deck()
  2. {
  3.     for (int i = 2; i<15; i++)
  4.     {
  5.         HeartCard a((CardValue)i);
  6.         deck.push_back(a);
  7.     }
  8.     for (int i = 2; i<15; i++)
  9.     {
  10.         DiamondCard a((CardValue)i);
  11.         deck.push_back(a);
  12.     }            
  13.     for (int i = 2; i<15; i++)
  14.     {
  15.         ClubCard a((CardValue)i);
  16.         deck.push_back(a);
  17.     }
  18.     for (int i = 2; i<15; i++)
  19.     {
  20.         SpadesCard a((CardValue)i);
  21.         deck.push_back(a);
  22.      }
  23. }
clone this paste RAW Paste Data