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...
Type: Posts; User: rfoor
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...
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...
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...
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...
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...
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...
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...
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...
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,...
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...
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...
Thanks
I have another question about how i would calculate the standard deviation...
I know that the standard deviation is calculated as:...
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...
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...
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...
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...
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...
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...
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.
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;...
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>...
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...
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...
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...
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...