1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string username, password;
int a=1, b=1, d=1, e=1;
int pg_sel, sg_sel, sf_sel, pf_sel, c_sel;
string pg[14], sg[13], sf[12], pf[11], c[15];
cout << "Welcome to the NBA Fantasy League. It's time to take your game from the courts to the computer." << endl << endl;
//cout << "login" << endl;
cout << "Please select a point guard" << endl << endl;
pg[0] = "Chris Paul PG"; pg[1] = "Mario Chambers PG"; pg[2] = "Mike Connely PG"; pg[3] = "Steve Nash PG"; pg[4] = "Russell Westbrook PG"; pg[5] = "Jeremy Lin PG"; pg[6] = "John Wall PG"; pg[7] = "Rajon Rondo PG";
pg[8] = "Tony Parker PG"; pg[9] = "Deron Williams PG"; pg[10] = "Derrick Rose PG"; pg[11] = "Kyrie Irving PG"; pg[12] = "Brandon Jennings PG"; pg[13] = "Ty Lawson PG";
for(int i=0; i<14; i++)
{
cout << a++ << ": " << pg[i] << endl;
}
cout << endl;
cout << "Please select a shooting guard" << endl << endl;
sg[0] = "Joe Johnson, SG"; sg[1] = "JR Smith, SG"; sg[2] = "Dwayne Wade, SG"; sg[3] = "Shane Battier, SG"; sg[4] = "Kobe Bryant, SG"; sg[5] = "James Harden, SG"; sg[6] = "Tim Allen, SG"; sg[7] = "Manu Ginobili, SG";
sg[8] = "Paul George, SG"; sg[9] = "Ray Allen, SG"; sg[10] = "Eric Gordon, SG"; sg[11] = "Monta Ellis, SG"; sg[12] = "Tyreke Evans, SG";
for(int j=0; j<13; j++)
{
cout << b++ << ": " << sg[j] << endl;
}
cout << endl;
cout << "Please select a small forward" << endl << endl;
sf[0] = "Lebron James, SF"; sf[1] = "Carmelo Anthony, SF"; sf[2] = "Paul Pierce, SF"; sf[3] = "Shawn Marion, SF"; sf[4] = "Luol Deng, SF"; sf[5] = "Gerald Wallace, SF"; sf[6] = "Rudy Gay, SF"; sf[7] = "Danny Granger, SF";
sf[8] = "Andre Iguodala, SF"; sf[9] = "Kevin Durant, SF"; sf[10] = "Danilo Gallinari, SF"; sf[11] = "Andrei Kirilenko, SF";
for(int k=0; k<12; k++)
{
cout << d++ << ": " << sf[k] << endl;
}
cout << endl;
cout << "Please select a power forward" << endl << endl;
pf[0] = "Amare Stoudemire, PF"; pf[1] = "Blake Griffin, PF"; pf[2] = "Zack Randolph, PF"; pf[3] = "Dirk Nowitzki, PF"; pf[4] = "Kevin Love, PF"; pf[5] = "Serge Ibaka, PF"; pf[6] = "LaMarcus Aldridge, PF"; pf[7] = "Pau Gasol, PF";
pf[8] = "Josh Smith, PF"; pf[9] = "Paul Millsap, PF"; pf[10] = "Carlos Boozer, PF"; pf[11] = "David Lee, PF";
for(int l=0; l<11; l++)
{
cout << e++ << ": " << sf[l] << endl;
}
cout << endl;
system("pause");
return 0;
}
|