Search:

Type: Posts; User: rfoor

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,222

    I tried this, but i keep getting error messages...

    I tried this, but i keep getting error messages saying that face and suit are undeclared identifiers. could i get some help please?


    void checkroyal(int& playerpoint,const char *wsuit[],const...
  2. Replies
    4
    Views
    1,222

    if statement with arrays help

    hello

    Im making a card game using arrays to setup the deck and produce cards. i've got everything done except for scoring both the players hand and dealers hand, to see who wins. I dont know how...
  3. okay... I fixed that problem. I dont understand...

    okay... I fixed that problem. I dont understand how to make it just draw one card after i have drawn the players and dealers cards. This is what i got so far


    void dealcommunity(const int...
  4. Making card generator random and not repeat cards

    Hello

    im making a card game that deals cards for a poker game. My problem is that my card dealer generates the same cards for both the player and the community cards. i was wondering how i could...
  5. Replies
    7
    Views
    4,161

    I understand rand(), but i dont see how it would...

    I understand rand(), but i dont see how it would be used to shuffle the deck. If i made the loop random it would just pick all those cards for that number picked at random...Any hints would be...
  6. Replies
    7
    Views
    4,161

    Right now I am not using arrays. But i made...

    Right now I am not using arrays. But i made another program that would generate random cards using arrays but it didnt work. I dont know whats wrong with it.


    #include<iostream>

    using...
  7. Replies
    7
    Views
    4,161

    here...this is what I was thinking, instead of...

    here...this is what I was thinking, instead of what I have up top. Is there an easier way to write the outcome instead of having to write out every single outcome there could be.
    this is what im...
  8. Replies
    7
    Views
    4,161

    texas holdem game help

    Hello
    I am writing a program that will be just like texas holdem.
    I have a question about how to score the hands. I was wondering if there was an easier way to make sure you have the right cards...
  9. Help making heart,spade,diamond,clover for texas holdem game

    hello

    Im making a texas holdem game and Im not sure how to make the heart,spade,diamond and clover to hold the suit of a card. I thought that I could just copy one from a text editor like this,...
  10. Replies
    4
    Views
    5,455

    file i/o help with standard deviation calculation

    hello

    I am writing a program that will take numbers entered by the user and calculate the average and standard deviation of those numbers. the program takes the numbers entered and outputs them to...
  11. Replies
    4
    Views
    5,455

    Calculating standard deviation(file I/O)

    hello

    I am writing a program that needs to calculate the average of numbers and the standard deviation of numbers, the numbers are input by the user.The program takes the numbers that the user...
  12. Replies
    2
    Views
    1,547

    Thanks I have another question about how i...

    Thanks

    I have another question about how i would calculate the standard deviation...
    I know that the standard deviation is calculated as:...
  13. Replies
    2
    Views
    1,547

    reading whole .txt file after entering numbers

    hello

    i am trying to make a program that will take numbers entered output them to a text file and compute the average and the standard deviation from the numbers in the file. I can enter the...
  14. Replies
    5
    Views
    1,099

    That's my problem, I don't know how to get my...

    That's my problem, I don't know how to get my program to read all of the numbers that I entered. When I do run the program and enter multiple numbers, it does have all of the numbers I entered. I...
  15. Replies
    5
    Views
    1,099

    Once...but that's all I thought it needed to do...

    Once...but that's all I thought it needed to do was read the whole file once to get the numbers. If I output the numbers that it reads it only reads the last number that was entered and not all of...
  16. Replies
    5
    Views
    1,099

    File I/O calculating total help

    Hello

    I am working on a program where I have to input numbers(as many as I want) and then I want to get the Average and the Standard Deviation from those numbers. I could do this easily if I...
  17. Replies
    2
    Views
    7,699

    military time converter using functions

    hello

    i am making a program where the user enters the hours and minutes in military time(24hrs) and the program will output the time in regular time(12hrs). i need to use funtions, one for the...
  18. Replies
    3
    Views
    3,547

    inflation program using functions

    hello

    im writing a program that will give the rate of inflation for the past year. it asks for the price of an item for this time and the price of the same item a year ago. i want to give the...
  19. Thread: loop help

    by rfoor
    Replies
    15
    Views
    1,773

    because if the player wants more than 5 cards,...

    because if the player wants more than 5 cards, the program wont let them. just like in a real blackjack game. i know its stupid but thats how i want it.
  20. Replies
    2
    Views
    8,844

    thanks i got it heres the code if you want to...

    thanks i got it heres the code if you want to play :)


    #include<iostream>
    #include <cstdlib> //to use rand function
    #include <ctime> // to use time as the seed for rand
    using namespace std;...
  21. Replies
    2
    Views
    8,844

    keeping score trough a loop

    hello
    im writing a rock paper scissors game and i want to keep the users scoreand computers score after the user says they want to play again. how would i do this?


    #include<iostream>...
  22. Thread: loop help

    by rfoor
    Replies
    15
    Views
    1,773

    its alot of code but this is my program so far....

    its alot of code but this is my program so far.
    i got everything to work except the aces for when the user goes over 21.
    i was thinking that if the user inputs an ace it would count how many were...
  23. Thread: loop help

    by rfoor
    Replies
    15
    Views
    1,773

    i want to input a letter/facecard ex. k,q,j,a...

    i want to input a letter/facecard ex. k,q,j,a when it asks for the card generated,and not have my program crash. it will do everything but accept letters for the input of a card. if found out why it...
  24. Thread: loop help

    by rfoor
    Replies
    15
    Views
    1,773

    im fine with the output of the face cards to the...

    im fine with the output of the face cards to the user. when the user inputs the face card the program crashes. i can input numbers fine, it calculates the total fine, and outputs the right total. i...
  25. Thread: loop help

    by rfoor
    Replies
    15
    Views
    1,773

    thats what i thought to, but when i input a...

    thats what i thought to, but when i input a facecard(j,q,k,a) my program crashes, i mean the code seems logical enough.
    also, is there a way to like save the card generator code as some function or...
Results 1 to 25 of 53
Page 1 of 3 1 2 3