Results 1 to 6 of 6

Thread: Gumball Guess

  1. #1
    σиє ℓιfє. ℓινє ιт. C0D-FR34K's Avatar
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
    Gamer IDs

    PSN ID: xC0D--FR34Kx Steam ID: c0d-fr34k

    Default Gumball Guess

    Hey Guys,

    This is another release of my c++ programs, so here it is:

    Download:
    Guess.rar

    I hope you guys like

    Plus+ rep if i helped

    EDIT:

    Code:
    #include <iostream>
    #include <ctime>
    using namespace std;
    
    int main(void)
    {
        int iGumballs;
        int iUserguess;
        int iGuesses = 0;
        
        while(true)
        { 
                   system("CLS");
                   cin.clear();
                   iGuesses = 0;
                   
        srand(static_cast<unsigned int>(time(0)));
        iGumballs = rand()%100+1;
        cout << "I    C0D-FR34K's Program:    I" << endl;
        cout << endl << "I       Gumball Guess        I" << endl;
        cout << endl << "------------------------------"<< endl;
        cout << endl << "How many gumballs is in the gumball jar?" << endl;
        do
        {
        cout << endl << "Enter your guess here: ";
        cin >> iUserguess;
        if(iUserguess > iGumballs)
        {
            cout << "Too High!" << endl << endl;
        }
        if(iUserguess < iGumballs)
        {
            cout << "Too Low!" << endl << endl;
        }
        iGuesses ++;
        }while(iUserguess > iGumballs || iUserguess < iGumballs);
        cout << "You guessed the RIGHT amount of gumballs, High Five! " <<
            endl << endl;
        cout << "You took " << iGuesses << " guesses" << endl << endl;
        system("PAUSE");
        }
        return 0;
    }

    0 Not allowed! Not allowed!
    Last edited by C0D-FR34K; 11-01-2011 at 07:56 PM.

  2. #2
    Member Punk's Avatar
    Join Date
    Jul 2011
    Location
    BT5 (Linux)
    Posts
    236
    Points
    711
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    BT5 (Linux)
    Posts
    236
    Points
    711

    Default

    Cool little program looks like you got the basic programming skills :thumbs:

    0 Not allowed! Not allowed!

    Quote Originally Posted by Russ View Post
    It isn't trolling. It is you being a stuck up lil bitch who thinks he is king of the mods.
    *To see some of my codes click the spoiler*

  3. #3
    σиє ℓιfє. ℓινє ιт. C0D-FR34K's Avatar
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
    Gamer IDs

    PSN ID: xC0D--FR34Kx Steam ID: c0d-fr34k

    Default

    Thanks dude

    0 Not allowed! Not allowed!

  4. #4
    σиє ℓιfє. ℓινє ιт. C0D-FR34K's Avatar
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
    Gamer IDs

    PSN ID: xC0D--FR34Kx Steam ID: c0d-fr34k

    Default

    ive put in the coding

    0 Not allowed! Not allowed!

  5. #5
    Oh Noez Batman ChelseaGrin's Avatar

    Badge

    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
    Gamer IDs

    PSN ID: byRexehh

    Default

    omg if u enter / it overides and keeps going to high! lol "i'm so high"

    how do u put it on the website though i dont want to upload it i dont feel like it

    0 Not allowed! Not allowed!
    Last edited by Feckless.; 11-04-2011 at 07:19 PM.





  6. #6
    #Rattpack
    Peace, Love, and Positivity
    JROD7oh7's Avatar
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
    Gamer IDs

    PSN ID: JROD_707

    Contact info:

    Youtube Channel: http://www.youtube.com/user/JROD7oh7?feature=mhee

    Default

    Oh yea I guessed it right and I got a digital high five, woot. (:

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 02:01 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.