1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
// BlackJack.cpp : Defines the entry point for the console application.
//
#include <stdafx.h>
#include <stdlib.h> //needed for rand() and srand()
#include <iostream>
#include <string.h>
#include <cmath>
using namespace std;
char cardvalue[52]= { '2', '2', '2', '2', '3', '3', '3', '3', '4', '4', '4', '4', '5', '5', '5', '5',
'6', '6', '6', '6', '7', '7', '7', '7', '8', '8', '8', '8', '9', '9', '9', '9', 't', 't', 't', 't', 'j', 'j', 'j', 'j',
'q', 'q', 'q', 'q', 'k', 'k', 'k', 'k', 'a', 'a', 'a', 'a' }
int main()
{
cout<< "The array consist of: " << cardvalue << endl;
}
| |