• entries
31
97
• views
13456

beat my cousin in pool 23 times and in bowling

200 views

My cousin and me went down to the lanes and played 25 times and bowling twice the first time he kick my butt (he bowled a 203!)the second time I wooped him then I scared the crap out of my dad when he picked us up when he was driving I popped a balloon in his ear [smile]. when I got home I started this program
#include#include#include#includeusing namespace std;int main(){    const int MAX_WORDS = 3;    //make the max number of words three    const string words[MAX_WORDS] =             {"hello",                "goodbye",            "guthead"};        srand(time(0));    //seed the random generator    int choice = (rand() % MAX_WORDS);    string theword = words[choice];        string jumble = theword;    int length = jumble.size();    for(int i = 0; i < length; i++)    {        int var1 = (rand() % length);        int var2 = (rand() % length);            char temp = jumble[var1];        jumble[var1] = jumble[var2];        jumble[var2] = temp;    }    cout<        int k;        cin>>k;    return 0;}
it's still got a small error but I'll fix it in a minute.

I'll bet [grin].

Create an account

Register a new account