Simple name generator in c++?

This is a discussion on Simple name generator in c++? within the C++ Programming forums, part of the General Programming Boards category; I know some c++, and I think I know enough to make a simple name generator. The only problem I ...

  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,045
    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 02: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, 10: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, 07:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21