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
|
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <cstdlib>
using namespace std;
int main()
{
string carnamesArray[30] = {"Honda", "Galant", "Ferari", "Mitsubishi", "Hondai", "Volvo", "Eclipse", "Lamborghini", "Porche", "Kid cudi", "Eminem", "50 Cent", "Galant", "Chrysler", "Ford", "Chevrolet", "Dodge", "Fake", "Ram", "Mercadies", "Lexus", "Jaguar", "Benz", "Trans am", "Firebird", "Lady Gaga", "Mini van", "Jeep", "300", "Pringles"};
string mpg[14] = {"15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28"};
int carsraced;
cout << "Welcome to the race!" << endl << endl;
system("PAUSE");
cout << endl << "How many cars would you like to race today?\n";
cin >> carsraced;
if (carsraced > 15)
{
cout << "Theirs a 15 car limit!" << endl;
system("PAUSE");
return 0;
}
system("PAUSE");
return 0;
}
|