954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help on a poker program

Ive been working on this poker program for a while now and ive tried several different ways to make a poker game...i have to make it using very basic c++ ...ill try to post what i already have done

Attachments POKER.CPP (3.64KB)
newbieneedshelp
Newbie Poster
1 post since Jun 2004
Reputation Points: 12
Solved Threads: 0
 

i dont know very much about c as of yet, but from what happend to me and looking at your source you forgot to add a line for what to do if your choice is somthing other than 0 1, it needs a value for Null (no entry) and all characters numbers from a-z 2-9 (because 1 and 0 are being used they are excluded) because when i just pressed enter the program got stuck in a loop and started spitting a line of text which i couldnt read, as fast as the computer could. also when it asked for a name, it never gave me a chance to enter my name, the program merely proceeded to the next line.

Killer_Typo
Master Poster
781 posts since Apr 2004
Reputation Points: 152
Solved Threads: 39
 

I'm sorry but when you want to program something in c++ you have to have backend stuff aswell. You have nothing in the "game" to manage a deck, deal a hand, rate the hand or anything. So far you have done the easy part which is to say what it should output.

Justin7
Newbie Poster
1 post since Aug 2009
Reputation Points: 1
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You