Sunday, August 2, 2009

C++ help please?

all i need to do is get started





Write a program that uses a random number generator to display one of 20 phrases stored in an array of char pointers. Let the user keep asking for phrases as long as desired

C++ help please?
you have nice legs...
Reply:do you have a specific question?





heres a hint on the random aspect:





srand( time( NULL ) ) ;


int idx = 19 * static_cast%26lt;double%26gt;(rand() / RAND_MAX) ;


No comments:

Post a Comment