Search:

Type: Posts; User: DarkSFK

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    993

    ANSII problems with my program.

    I have some problems with creating functions. I think I did everything right, but I can't figure out the problem. i will post the code. I know some of it might be incorrect now, but I will fix that...
  2. Never mind, I fixd the problem. And, I did it...

    Never mind, I fixd the problem. And, I did it without help!
  3. I mean, I don't know why it's messed up. How do I...

    I mean, I don't know why it's messed up. How do I fix it? Should I post my source code?
  4. .EXE is messed up, but my program runs fine in the compiler!

    I made a new program, and successfuly got it to work without any help! Well, sorta. I have a GNU C++ compiler, and when I click Run>Run, the program executes EVERYTHING without any errors. But, when...
  5. Replies
    4
    Views
    1,116

    I don't know how to do random numbers yet.:( ...

    I don't know how to do random numbers yet.:(

    EDIT: Hmmm............ does anyone know how to set the variable as a random number between 1 and 1000 everytime you open the file?
  6. Replies
    4
    Views
    1,116

    Is this possible?

    I have made improvements to my number game. I have made it so you have to enter a number that you will guess. Like this:

    You enter 651. That would be the number you have to guess.

    But, when you...
  7. Replies
    7
    Views
    1,024

    Yeah, you helped. In C++ for dummies, it doesn't...

    Yeah, you helped. In C++ for dummies, it doesn't say you need braces before and after the 'else'. It doesn't even show that in example programs.:confused:
  8. Replies
    7
    Views
    1,024

    >Switch is only used in case statments. I am...

    >Switch is only used in case statments.

    I am extremely dumb......-_-

    Thanks for the help. I forgot about the braces around the else statements.
  9. Replies
    7
    Views
    1,024

    I have a compiling error...

    Well, I started with switches, and completely understand them and how they work. But, I have 2 errors when trying to compile my improved number game. Here is the code:



    #include <stdio.h>...
  10. Thread: Looping.

    by DarkSFK
    Replies
    17
    Views
    2,534

    Well, I got it working, and I'm starting on...

    Well, I got it working, and I'm starting on switches in the book tomorrow, since it's too late for me to think right now. Anyway, I hope to make some improvements on it. Thanks again for your help.
  11. Thread: Looping.

    by DarkSFK
    Replies
    17
    Views
    2,534

    So: #include #include ...

    So:

    #include <iostream.h>
    #include <conio.h>

    int main()
    {
    //code
    }
  12. Thread: Looping.

    by DarkSFK
    Replies
    17
    Views
    2,534

    One more problem. I got the program to loop fine...

    One more problem. I got the program to loop fine and everything, but when it displays the message: That's correct, it just exits. Is there any way to make the program terminate by pushing a key?
  13. Thread: Looping.

    by DarkSFK
    Replies
    17
    Views
    2,534

    I feel so stupid. I have no idea why I didn't...

    I feel so stupid. I have no idea why I didn't think of that.
  14. Thread: Looping.

    by DarkSFK
    Replies
    17
    Views
    2,534

    Ok, so let me get this straight, the program uses...

    Ok, so let me get this straight, the program uses the loopCount variable to loop everything after while(loopCount>0) statement?

    Oh, yeah, I tried doing the while command after the code I just...
Results 1 to 14 of 14