Thread: Simple name generator in c++?

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    10

    Simple name generator in c++?

    I know some c++, and I think I know enough to make a simple name generator. The only problem I have, is that I can't imagine how the code is beeing set up. I know that I need an input for a character, and a random selection of names that starts with the character wich is entered. I was wondering if anyone could help me.

    Greatfaith.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Sounds good. Do you know how to generate a random number? [edit] See the FAQ: http://faq.cprogramming.com/cgi-bin/...&id=1043284385. There's also an article on rand on Prelude's site: www.eternallyconfuzzled.com. [/edit]
    Last edited by dwks; 12-29-2005 at 03:50 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 05:26 PM
  2. Simple message encryption
    By Vicious in forum C++ Programming
    Replies: 10
    Last Post: 11-07-2004, 11:48 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Simple simple program
    By Ryback in forum C++ Programming
    Replies: 10
    Last Post: 09-09-2004, 05:48 AM
  5. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 08:52 AM