#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;}
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 programit's still got a small error but I'll fix it in a minute.
Next Entry
nuttin to do
Advertisement
Latest Entries
Linux and artwork..!
1075 views
artwork..or is it?
1265 views
OpenGL!
1231 views
sprites!
1222 views
API madness!!
1051 views
Win32 isn't that hard
951 views
got a new book
903 views
levesl gain gone!
979 views
what happened?
1027 views
text based madness
1015 views
Advertisement