Search:

Type: Posts; User: findme

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,107

    o thanks man u guys must know a lot about...

    o thanks man

    u guys must know a lot about loops.
  2. Replies
    4
    Views
    1,107

    why do i get 5050?

    #include <iostream>
    #include <stdlib.h>
    #include <string>
    using namespace std;

    int main(int argc, char *argv[])
    {
    int x = 0;
    int i;
    for (i = 1; i <= 100; i++){
  3. Thread: Dice Function..

    by findme
    Replies
    4
    Views
    3,964

    o thanks for that man. i get it now.

    o thanks for that man. i get it now.
  4. Replies
    5
    Views
    1,085

    no actually i don't. i just need little tips. not...

    no actually i don't. i just need little tips. not someone to do my homework.
  5. Replies
    6
    Views
    2,182

    ok so change bool...

    ok so change


    bool getRoll(firstDie,secondDie)
    {
    char input;
    cout << "Roll dice? " << endl;
    cin >> input;
    input = 1 || 0;
    if(input == 1) return true;
  6. Thread: Dice Function..

    by findme
    Replies
    4
    Views
    3,964

    Dice Function..

    int getDice()

    I am trying to write a function to return the value of a thrown dice. the function will return the dice value, a number between 1 and 6.

    i know you use the srand and the rand...
  7. Replies
    5
    Views
    1,085

    get Turn Function...

    int getTurn(int input)

    ok im trying to write a function that throws the dice and tells the player the results and adds up the total score. This function will have the old score as the input and...
  8. Replies
    6
    Views
    2,182

    ok so here is where i put the bool function in. ...

    ok so here is where i put the bool function in.





    //adds the iostream library to the program
    #include <iomanip>
    #include <iostream>
    #include <cstdlib>
  9. Replies
    6
    Views
    2,182

    Writing a bool function

    ok my function will be bool getRoll ()

    im trying to write a function that will ask the user if they would like to roll for a particular round. The user can input ANY character but only a '1'...
  10. yawn read my question atthe top of your post then...

    yawn read my question atthe top of your post then look at your answer....
  11. ok but how do you make the code when a person...

    ok but how do you make the code when a person enters 0 or anything other than 1 repeat?

    "Would you like to roll this round? [1 for yes, 0 for no]:\n\n";
  12. also your code doesn't help either because when i...

    also your code doesn't help either because when i use it makes me do the samething i had before which would make it only work with if a person enters 0 then it will repeat the same statement over......
  13. Daved i can use this one because this one doesn't...

    Daved i can use this one because this one doesn't actually do what i need it to do. although it has the clear values i need it to repeat the message over and i can't find a code like that yet.
  14. Replies
    6
    Views
    2,710

    you need to call the fighter_array to use the...

    you need to call the fighter_array to use the function.
  15. code is doing the opposite of what i tell it to do..

    ok well here is my problem. my code is doing the exact opposite i want it to do. it is saying when a person enters a 1 or anything else other than a 0 it will show up as a the person rolled but i...
  16. Replies
    17
    Views
    2,024

    yawn i got it. //adds the iostream library...

    yawn i got it.


    //adds the iostream library to the program
    #include <iostream>
    #include <cstdlib>
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #define BOOL_H
  17. Replies
    17
    Views
    2,024

    so how do you make a the program pick a random...

    so how do you make a the program pick a random number between 1 trough 8 like and cout both of the die?
  18. Replies
    10
    Views
    3,801

    yes that is part of what i wanted to do but i...

    yes that is part of what i wanted to do but i need tomake it so that
    if a person enters anything else ( like A,0,2,3,5,35)but a 1
    then



    //cout << "Would you like to roll this round? [1 for...
  19. Replies
    10
    Views
    3,801

    any ideas?

    any ideas?
  20. Replies
    7
    Views
    1,817

    fundementals in c++ introductory book. but i...

    fundementals in c++ introductory book. but i think most anyone would agree any book that has intro to c++ would help you.
  21. Replies
    10
    Views
    3,801

    where do you put that? in int main?

    where do you put that? in int main?
  22. Replies
    10
    Views
    3,801

    anyone got any answers to this annoying problem?

    anyone got any answers to this annoying problem?
  23. Replies
    17
    Views
    2,024

    wow. i learned something new today... thanks a...

    wow. i learned something new today... thanks a lot!
  24. Replies
    10
    Views
    3,801

    i get a problem that when you enter 0 you get 2...

    i get a problem that when you enter 0 you get 2 lines saying the same thing. how do i get rid of one of the lines?






    //adds the iostream library to the program
    #include <iostream>
    //adds...
  25. Replies
    10
    Views
    3,801

    how do you repeat cout statements?

    ok my question is if a person in used my code and pressed 0 to not roll how do you repeat it again until the user enters 1 for yes?




    //adds the iostream library to the program
    #include...
Results 1 to 25 of 37
Page 1 of 2 1 2