Funny program

This is a discussion on Funny program within the C++ Programming forums, part of the General Programming Boards category; Hi all, I have written a funny program that takes your name and then assigns you a silly name. Its ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    30

    Smile Funny program

    Hi all,

    I have written a funny program that takes your name and then assigns you a silly name.

    Its written for MSVS C++ but should compile on any common compiler with slight modification:

    Two questions:-

    1) How can I make it more compact, especially with regard to the long list of switch cases at the end?

    2) [Probably off topic] when I send the executable to a freind it will not work - probably being quarantined by a virus checker. Could someone please help me or point me to a newsgroup that can.
    Homer

    D'OH!

    mmmmmmmm... iterations

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    367
    If you want to e-mail a program to a friend, simply rename .exe to something else, then your friend names it back to .exe when he receives it!

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    30
    Thanks Zewu,
    tried that already, didn't work!
    Homer

    D'OH!

    mmmmmmmm... iterations

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Try putting the exe in a zip file, that usually does the trick. My school mail server does the same thing.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    30

    Thumbs down

    Thanks MrWizard, I tried that too, and that dosn't work.

    I think I'm going to have to create a web page and get him to download it from there.

    Thanks for your replies...
    Homer

    D'OH!

    mmmmmmmm... iterations

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  2. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM

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