Results 1 to 5 of 5
  1. #1
    GER-Domi.'s Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    277
    Reputation
    15
    Thanks
    823
    My Mood
    Cool

    need help with console coding

    hi guis,

    i need a console:

    i used this code for a console but there is a loop missing and i don t know how to code a loop > becouse i m still learning c++ someone have to edit this code and add a loop

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    
    {
        float address;
    	cin >> address;
    
    		system("pause");
    }
    what the programm have to do:
    - if i type a adress like this in it: 0x97342 and i press enter the console have to be empty and ... i can do it again.. type a adress in it and if i press enter again its empty again. <<< please add this on the code

    if someone can help me successfull he get credits for the console!

  2. #2
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    [php]
    #include <iostream>
    using namespace std;

    int main()
    {
    while(true)
    {
    float address;
    cout << "Enter\n";
    cin >> address;
    cin.get();
    system("cls");
    }
    }[/php]

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  3. #3
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Just get a regular book and learn form the beggining
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  4. #4
    GER-Domi.'s Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    277
    Reputation
    15
    Thanks
    823
    My Mood
    Cool
    Quote Originally Posted by Kallisti View Post
    [php]
    #include <iostream>
    using namespace std;

    int main()
    {
    while(true)
    {
    float address;
    cout << "Enter\n";
    cin >> address;
    cin.get();
    system("cls");
    }
    }[/php]
    hmm dont work.. becouse if i write a address in it and press enter i can t write something again..

  5. #5
    JayFabulous's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    4
    My Mood
    Fine
    This loop will run ten times:

    Code:
    #include <iostream>
    #include <conio.h> // getchar(); !Required only for pre 2010 Visual Studio's, and other IDE's.
    using namespace std;
    
    int main()
    
    {
        float address;
        for(int x = 0; x < 10; x++) {
    	// You will be prompted x times to run through the loop.
        cin >> address;
    }
    
    		getchar();
    	//system("pause"); Avoid the use of "system" commands, their slow on dismissle from the HEAP. 
           // ...FIOS issue. Use getchar in place of ("pause")
    }
    Information:

    This application will run through a loop x times. Each time prompting you to enter a value for variable 'address'. The previous value in the variable 'address' (if any) will then be overwriten. To avoid over writing values please use a vector or an array, or simply different variables.
    Last edited by JayFabulous; 09-07-2010 at 07:47 AM. Reason: removed system command

Similar Threads

  1. [Help Request] need help with injecting code/using it
    By 0xx-kyle-xx0 in forum Combat Arms Help
    Replies: 1
    Last Post: 06-17-2018, 12:02 PM
  2. I need help with this code in C#
    By trevor206 in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 08-18-2009, 05:40 PM
  3. [HELP] I NEED HELP WITH STAMINA CODE
    By ilovepie21 in forum Visual Basic Programming
    Replies: 15
    Last Post: 03-03-2008, 07:41 PM
  4. need help with teleport code
    By konni in forum WarRock - International Hacks
    Replies: 0
    Last Post: 07-29-2007, 11:07 PM
  5. NEED help with verification code when registering!
    By vinogradov in forum WarRock Korea Hacks
    Replies: 2
    Last Post: 05-30-2007, 07:20 PM