Not outputting if statements

If you guys can help much will be appreciated.

#include <cstdlib>
#include <iostream>
#include <string>

using namespace std;

/*
*
*/
int main(int argc, char** argv)
{
int inputCasino, inputDealer;
const int NUM_CASINO = 2;
const int NUM_DEAL = 2;
string choice[NUM_CASINO][NUM_DEAL];
choice[0][0] = 'Casino: MGM; BlackJack Dealer: Bob';
choice[0][1] = 'Casino: MGM; Dealer: Jessica';
choice[1][0] = 'Casino: Star Dust; Dealer: Manson';
choice[1][1] = 'Casino: Star Dust; Dealer: Craig';
cout<<"Choose from the following\n";
cout<<"A and B for MGM with Dealer Bob\n";
cout<<"A and C for MGM with Dealer Jessica\n";
cout<<"B and D for Star dust with Dealer Manson\n";
cout<<"B and E for Star dust with Dealer Craig\n";


if (inputCasino == 'A' && inputDealer == 'B')
{

cout<<"Congratulations you have picked Casino"<<choice[0][0];


choice[0][0] = 'Casino MGM with Bob\n';
}


if (inputCasino == 'A' && inputDealer == 'C')
{
cout<<"Congratulations you have picked "<<choice[0][1];

choice[0][1] = 'Casino MGM with Jessica';
}

if (inputCasino == 'B' && inputDealer == 'D')
{
cout<<"Congratulation you have picked "<<choice[1][0];

choice[1][0] = 'Casino Star dust with Manson';
}
if (inputCasino == 'B' && inputDealer == 'E')
{
cout<<"Congratulation you have picked "<<choice[1][1];

choice[1][1] = 'Casino Star dust with Craig';
}

cin>>inputCasino>>inputDealer;

return 0;
}
Use double quotes for strings.
1
2
3
choice[0][0] = "Casino: MGM; BlackJack Dealer: Bob";
choice[0][1] = "Casino: MGM; Dealer: Jessica";
... etc.
THX but still didnt solve my problem tho
Your if statements depend on the values of inputCasino and inputDealer. You get those values at the very END of your program. If you're going to be using them, you should be gathering that input from the user before you try to use them.
thx Moschops, omg stupid mistake i couldnt figure it out
Topic archived. No new replies allowed.