Thread: Has Anyone Made

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

    Has Anyone Made

    has anyone made a program where u type your name in and it comes up with something like
    i type barry and it comes up with i hate you barry
    etc has anyone got the code for this
    Newbie

  2. #2
    Registered User LiNeAr's Avatar
    Join Date
    Aug 2005
    Posts
    31
    What? Don't ask for that kind of stuff here. We will not do your work for you. Post code of what you think it might be and we will help. Don't post a random idea, and expect us to do it. Geez, read a book.

  3. #3
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    Code:
    /*has anyone made a program where u type your name in and it co
    mes up with something like
    i type barry and it comes up with i hate you barry
    etc has anyone got the code for this
    */
    #include <iostream>
    
    int main()
    {
        char name[81];
        std::cout<<"What is your name:";
        std::cin>>name;
        std::cout<<"I hate you "<<name;
        std::cin.get();
        std::cin.get();
    }

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    thanks i will next time cheers treenef you ace i forgot to put 2 of std::cin.get();. these in the code thanks
    Newbie

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    51
    something like:

    Code:
    char name[40];
    cin.get(name, 40);
    
    cout<<"I hate you "<<name;
    I abuse:

    Borland C++ Builder 6 Enterprise Edition

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Code:
    std::string name;
    std::getline(cin, name);

  7. #7
    Registered User
    Join Date
    Aug 2005
    Posts
    15

    do u know how to run this cause mine isnt workin

    do u know how to run this cause mine isnt workin
    Newbie

  8. #8
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    Newbie

  9. #9
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    http://gnu.org

    find make in the list of software, build it.
    then make sure it's in dev c++'s path configuration.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  10. #10
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Ahahahaha I love this thread.

  11. #11
    Registered User
    Join Date
    Aug 2005
    Posts
    15
    cheers 4 your help it works now
    Newbie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Small 3D Art Gallery I made
    By BobMcGee123 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 07-06-2005, 06:03 PM
  2. nifty little thing i made
    By DavidP in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2003, 11:43 PM
  3. check out this cool program i made
    By Leeman_s in forum C++ Programming
    Replies: 9
    Last Post: 12-19-2002, 10:02 PM
  4. What's the best program you have ever made?
    By Kevin.j in forum A Brief History of Cprogramming.com
    Replies: 31
    Last Post: 10-02-2002, 11:29 AM
  5. home made movies and animations
    By iain in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 09-02-2001, 11:16 AM