Search:

Type: Posts; User: kpridd

Search: Search took 0.01 seconds.

  1. Thread: Ending a game.

    by kpridd
    Replies
    1
    Views
    862

    nvm got it.

    nvm got it.
  2. Thread: Ending a game.

    by kpridd
    Replies
    1
    Views
    862

    Ending a game.

    I have a fighting game where one player attacks another computer player causing both players to lose health.. I want to end the program once either players health gets to 0.. How would i go about...
  3. Replies
    2
    Views
    1,012

    thanks i tried something exactly like that i did...

    thanks i tried something exactly like that i did user +1 guess that isn't incremental.. appreciate it.
  4. Replies
    2
    Views
    1,012

    Making a counter

    I'm trying to figure out how to get a counter that will keep score so far everything i've tried wont work. I tried saying that if (outcome = lose) computer + 1 or something like that.. any ideas.

    ...
  5. Replies
    6
    Views
    1,461

    The way I have done it essentially works however...

    The way I have done it essentially works however



    #include<iostream>
    #include<string>
    #include<cstdlib>
    #include<ctime>

    using namespace std;
  6. Replies
    6
    Views
    1,461

    Using inheritance.

    Using inheritance, this program will allow the creation of different types of soldiers based on the Soldier base class. Each type of soldier should handle marching and fireing differently.
    For...
  7. Thread: Debugging help

    by kpridd
    Replies
    3
    Views
    1,164

    thanks found them all

    thanks found them all
  8. Thread: Debugging help

    by kpridd
    Replies
    3
    Views
    1,164

    Debugging help

    I'll mark where errors are coming up..



    #include<iostream>
    #include<string>
    #include<cstdlib>
    #include<ctime>

    using namespace std;
  9. Replies
    18
    Views
    1,830

    Thanks I figured it out just wasn't putting them...

    Thanks I figured it out just wasn't putting them in brackets i guess.. Appreciate all your help
  10. Replies
    18
    Views
    1,830

    #include #include...

    #include<iostream>
    #include<ctime>
    #include<cstdlib>
    #include<string>

    using namespace std;

    int length, index1, index2, input, num, i, tries = 0;
    string guess;
    char temp;
  11. Replies
    18
    Views
    1,830

    okay last question and i think i got it why does...

    okay last question and i think i got it why does it say i'm "jumping to case label" whenever i add case 2: into this



    #include<iostream>
    #include<ctime>
    #include<cstdlib>
    #include<string>
    ...
  12. Replies
    18
    Views
    1,830

    #include #include...

    #include<iostream>
    #include<ctime>
    #include<cstdlib>
    #include<string>

    using namespace std;

    int length, index1, index2, input, num, i, tries = 0;
    string guess;
    char temp;
  13. Replies
    18
    Views
    1,830

    Thanks everything seems to be working it gives me...

    Thanks everything seems to be working it gives me the correct numbers and it mixes them up. Only problem is that sometimes it randomly gives an empty space as a character? what could be causing that
  14. Replies
    18
    Views
    1,830

    cout

    cout << "Enter the number of symbols you would like to guess" << endl;
    cin >> length;

    sequence += SYMBOLS[GetRandNum(4)];

    for (int...
  15. Replies
    18
    Views
    1,830

    what would "your_number" be equivalent too? the...

    what would "your_number" be equivalent too? the number they type in or just a randomly generated number?
  16. Replies
    18
    Views
    1,830

    i think one of the problems is because i reset...

    i think one of the problems is because i reset length when i say
    int length = sequence.size()
    not sure what to do
  17. Replies
    18
    Views
    1,830

    ya thanks i just figured out the array i have...

    ya thanks i just figured out the array i have this for my code to jumble




    string sequence = SYMBOLS;
    int length = sequence.size();
    for (int i = 0; i <...
  18. Replies
    18
    Views
    1,830

    okay i get everything you stated except how to...

    okay i get everything you stated except how to store the 4 symbols


    const char SYMBOLS{ !, %, &, @}

    i know what an array is.. would it be a two-dimensional array or just one? i tried this it...
  19. Replies
    18
    Views
    1,830

    Helpful Ideas to get started

    This game should create a series of hidden symbols which the player needs to guess which symbols and the order. The symbols are !, @, &, and %. The string created using these symbols should have...
Results 1 to 19 of 19