Sunday, July 12, 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?
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) ;
Reply:you have nice legs...

sending flowers

No comments:

Post a Comment