Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

random quote generator

Name: Anonymous 2008-09-10 14:35

I was wondering what everyone thought of writing a random quote generator in C++ for XP/Vista.  I'm having a hard time with it.  I wanted it not to have a regular GUI, just have a system tray icon that would pop up a message bubble with the random quote from a .txt file, say every hour or so.  I think I figured out the bubble thing, but getting the program to take a random quote from the text file is driving me crazy.  Do I have to make the quotes in separate strings in the code of the program, so I can get them to pop up every hour in a bubble window?

Name: Anonymous 2008-09-10 14:46

what a stupid idea. anyway just find a way of separating strings like with a :: or something and read in the file to a std::string, splitting it at each :: to get an array of quotes.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List