Search:

Type: Posts; User: Kespoosh

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,249

    Ugh, I knew it was something obvious...Thanks so...

    Ugh, I knew it was something obvious...Thanks so much!
  2. Replies
    2
    Views
    1,249

    Simple Windows program errors

    Alright, I read "Lesson One: An Introduction to Windows Programming," and copied and pasted the code (see below) into my compiler (VC++ 6.0), compiled fine but when built I get the following errors:...
  3. Thread: Please help!

    by Kespoosh
    Replies
    6
    Views
    1,021

    Will this fix the problem? Or is it just another...

    Will this fix the problem? Or is it just another one of the things I screwed up on? :P
  4. Thread: Please help!

    by Kespoosh
    Replies
    6
    Views
    1,021

    Re: Please help!

    I'm trying! It won't play unless an if statement is fulfilled.
  5. Thread: Please help!

    by Kespoosh
    Replies
    6
    Views
    1,021

    Oh yeah....sorry!

    Oh yeah....sorry!
  6. Thread: Please help!

    by Kespoosh
    Replies
    6
    Views
    1,021

    Please help!

    This is my code:


    #include <iostream.h>
    #include <stdio.h>
    #include <time.h>
    #include <stdlib.h>

    char playagain='y';
    char number;
  7. Replies
    13
    Views
    1,181

    Uh...what?

    Uh...what?
  8. Replies
    13
    Views
    1,181

    I think I know what's wrong....

    I think I know what's wrong. For(i=i+'0';i<10;i++)...i++ tries to add (int)1 to (char)i, doesn't it?
  9. Replies
    13
    Views
    1,181

    #include #include ...

    #include <iostream.h>
    #include <stdio.h>
    #include <time.h>
    #include <stdlib.h>

    char playagain='y';
    char number;
    char array[10];
    char i='1';
    char compnumber;
  10. Replies
    13
    Views
    1,181

    Alright, I'll do that, thanks. Can you explain...

    Alright, I'll do that, thanks. Can you explain how srand(time(NULL)) works? It would help greatly in the future if I understood that.
  11. Replies
    13
    Views
    1,181

    Re: Help with random numbers®enerating them

    I said it's incomplete....It checks to see if it can win or stop the player from winning first (not completed yet), and if it can't it uses a random number to determine which spot to put an O in, and...
  12. Replies
    9
    Views
    1,447

    Alright, well, that part's working, now. Please...

    Alright, well, that part's working, now. Please see my other thread if you're interested in helping me with my other problem.
  13. Replies
    13
    Views
    1,181

    It worked before, exactly like that... Can you...

    It worked before, exactly like that...
    Can you explain this a little more? I'm very new to C++.
  14. Replies
    13
    Views
    1,181

    Help with random numbers®enerating them

    Here's my code for a tic-tac-toe game. It's incomplete, but almost done.


    #include <iostream.h>
    #include <stdio.h>
    #include <time.h>
    #include <stdlib.h>

    char playagain='y';
    char number;
  15. Replies
    2
    Views
    1,377

    I was hoping there was a faster way to do it, but...

    I was hoping there was a faster way to do it, but thanks.
  16. Replies
    2
    Views
    1,377

    Running multiple programs

    My sample, stupid fake code:


    #include <iostream.h>

    int x;

    int main(void)
    {
    cout << "Option 1, 2 or 3?"
  17. Replies
    9
    Views
    1,447

    Yeah, I tried that, but number as a char didn't...

    Yeah, I tried that, but number as a char didn't accept input properly. Anyway, I found somewhere on this board that char i='4', i=i-'0' makes i integer 4.
  18. Replies
    9
    Views
    3,220

    I don't claim to be any good at C++, but I...

    I don't claim to be any good at C++, but I believe that you have to have an array, not a char. I think a char will only store one keystroke, whereas an array can store many characters. I think.
  19. Replies
    9
    Views
    1,447

    I know, but if i=0, that elimintes some much...

    I know, but if i=0, that elimintes some much easier coding later on
  20. Replies
    9
    Views
    1,447

    I see. So, how can I make this work? I don't want...

    I see. So, how can I make this work? I don't want to use multiple variables for each space...Can I convert a char into an int temporarily?
  21. Replies
    9
    Views
    1,447

    Array won't display new values?

    I'm trying to make a simple tic-tac-toe program. In the example below, it's incomplete, only I finished it enough to run it and check for errors.


    #include <iostream.h>
    #include <stdio.h>...
  22. Replies
    6
    Views
    4,548

    Thanks!

    Thanks!
  23. Replies
    6
    Views
    4,548

    Ok, I just thought a switch would be easier than...

    Ok, I just thought a switch would be easier than many, many, many IF statements. What would be faster? I was thinking, if I stored a bunch of variables in an array, is there any way to compare the...
  24. Replies
    6
    Views
    4,548

    To check to see if a variable equals the input,...

    To check to see if a variable equals the input, but isn't already assigned to something else.
  25. Replies
    6
    Views
    4,548

    Switch/Case using && != and ||?

    Can a Switch/Case statement have AND, NOT and OR in it? As in:


    switch (a)
    case 1 && c!=4:

    etc.
Results 1 to 25 of 31
Page 1 of 2 1 2