Thread: Name Generator

  1. #16
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Quote Originally Posted by Thantos
    Only possible problem with your solution itsme is that you are explicitly null terminating. Yes I know that a partually initalized array is suppose to zero out the rest of the array but I'm not willing to trust the compiler to do that.
    It's guaranteed by the standard. If the compiler doesn't do it then get a new compiler. You may as well not trust int to be a keyword either.
    Last edited by itsme86; 01-08-2005 at 12:24 PM.
    If you understand what you're doing, you're not learning anything.

  2. #17
    Teenage Mutant Ninja Nerd MMD_Lynx's Avatar
    Join Date
    Aug 2004
    Posts
    65
    Sorry, I haven't been able to look at this for more than 12 hours. random(int n) is a function for my compiler. I know it's not standard.

    Thanks to everyone. You set me straight in some of my newbish ways. Comment on what Prelude said:
    Yah, I was thinking of something like that but I thought it was too complicated for me. However, now all the names seem almost...Japanese or something (because I know Japanese letters usually stand for two English letters)
    Last edited by MMD_Lynx; 01-08-2005 at 01:25 PM.
    Stupid people are useful. You can make them do all the mindless tasks you are too lazy to do yourself.

    Sphynx cats are just bald and wrinkly, like old people, and we don't reject them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. X509v3 digital certificate generator
    By CypherHackz in forum C Programming
    Replies: 1
    Last Post: 03-17-2008, 06:18 AM
  2. Replies: 1
    Last Post: 09-04-2007, 05:31 AM
  3. NAQ: Everything you never wanted to know about CPP
    By evildave in forum C Programming
    Replies: 21
    Last Post: 12-12-2005, 10:56 AM
  4. written command line password generator
    By lepricaun in forum C Programming
    Replies: 15
    Last Post: 08-17-2004, 08:42 PM
  5. .SFV Generator
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-15-2004, 12:00 PM