Search:

Type: Posts; User: Grae

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    3,772

    thanks for the reply but no that does not fix the...

    thanks for the reply but no that does not fix the problem
  2. Replies
    3
    Views
    3,772

    Checking for a straight (poker) in C++?

    Hi, I'm making a poker game where the user is provided with 5 cards and these cards are given a value. Unfortunately I've been having errors when the program checks for a straight. To check for a...
  3. ok sure if it is that important ill just leave it...

    ok sure if it is that important ill just leave it until i know how to use pointers and references. I just dot want to use code in my program which i do not yet understand
  4. thanks guys, i'm reading a book on C++ and have...

    thanks guys, i'm reading a book on C++ and have not yet learnt about pointers or references yet so I think i'll just use a few global variables for now and fix it up later :)
  5. Is it possible to change the value of a variable in main using a function?

    Hi, I'm currently writing a poker game and am trying my best to avoid using global variables. I have a few variables in int main() which i was hoping to use to store the value of each players hand. I...
  6. Replies
    3
    Views
    1,507

    Ok thanks a lot :)

    Ok thanks a lot :)
  7. Replies
    3
    Views
    1,507

    Randomization problem

    Hi again, sorry to keep posting questions in this forum but i have nowhere else to find answers :frown:. I'm now trying to make a simulation of a slot machine but for some reason which i should...
  8. what if i want to use a variable in multiple...

    what if i want to use a variable in multiple functions?
  9. ok thanks that solved my problem

    ok thanks that solved my problem
  10. haha my bad

    haha my bad
  11. Getting error using an enum in an if statement???

    Hi, i'm trying to make a simple C++ program in which the user must try to guess a number, if they guess too high it says "too high" and if they guess too low it says "too low".
    I also decided to...
  12. k thanks

    k thanks
  13. Need help with a simple password checker using functions!

    Hi, kinda stuck trying to make a simple password checker which uses a function to check the password.
    When i run the program and then enter the password it come up with an error and shuts down the...
  14. Replies
    6
    Views
    2,090

    ok i shall :)

    ok i shall :)
  15. Compare two strings to see which comes first in alphabetical order?

    How would you compare two strings in an if statement to determine which comes first in alphabetical order?

    Try and keep it simple because i am currently new to the language
  16. Replies
    6
    Views
    2,090

    k thanks that makes much more sense, this has...

    k thanks that makes much more sense, this has nothing to do with the previous question but how would u compare two strings to see which comes first, using an if statement and comparison operators?
  17. Replies
    6
    Views
    2,090

    i still don't understand what it means... cant...

    i still don't understand what it means... cant you read the whole line without getline?
  18. Replies
    6
    Views
    2,090

    Purpose of getline in C++?

    Hi, i'm new to C++ and the book which i am reading says that the purpose of getline is to show the whole line. Could someone please elaborate on this.

    Thanks
  19. Replies
    4
    Views
    4,622

    "Jumping into C++" Chapter 5 Practice Problem

    Hi, I'm reading a book on C++ and one of the practice problems after the intro to loops reads:

    "write a program that provides the option of tallying up the results of a poll with 3 possible...
  20. New to C++, need help creating a very simple poll using loops

    Hi, I'm reading "Jumping into C++" and I am having trouble completing a practice problem at the end of the chapter on loops.
    Here is the problem:

    "write a program that provides the option of...
Results 1 to 20 of 21