a menu with that you click 1,2,3 or 4 to do something I'm thinking I would need
an if statement to do that, I need help on the Syntax of If statements.
Here's my code!
// Versoin: 0.1
// Author: Rick
// Name: Chess
// Copyright: 2008-2009
#include <iostream>
using namespace std;
int main()
{
string inputPawn;
string inputRook;
printf ("_________________\n");
printf ("|r|n|b|q|k|b|n|r| 8 ");
printf ("Team 2\n");
printf ("|p|p|p|p|p|p|p|p| 7\n");
printf ("|_|_|_|_|_|_|_|_| 6\n");
printf ("|_|_|_|_|_|_|_|_| 5\n");
printf ("|_|_|_|_|_|_|_|_| 4\n");
printf ("|_|_|_|_|_|_|_|_| 3\n");
printf ("|P|P|P|P|P|P|P|P| 2\n");
printf ("|R|N|B|Q|K|B|N|R| 1 ");
printf ("Team 1\n");
printf ("-----------------\n");
printf (" A B C D E F G H\n");
//--------------------------------------------------
cout<< "\n";
cout<< "Team 1's Turn!\n";
printf ("\n");
printf ("MENU\n");
printf ("Click the # of the action you want to do.\n");
printf ("1. Select A Pawn to move.\n");
printf ("2. Select A Knight to move.\n");
printf ("3. End turn\n");
printf ("4. QUIT\n");
system("PAUSE");
return 0;
}
And here's a screen

New Topic/Question
Reply



MultiQuote






|