Web Hosting Forums Web Discussions on Hosting Webmaster forums Web Hosting Forums Domain Name Forums Web Hosting

Go Back   Web Hosting Forums Web Discussions on Hosting Webmaster forums Web Hosting Forums Domain Name Forums Web Hosting > Main Web Hosting Discussions Forums > Programming Discussion

Programming Discussion Web Hosting Forums - Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-10-2007, 04:40 AM   #1 (permalink)
HWHT Starter
Join Date: Jan 2007
Location: U.S.A.
Posts: 1
ineedcodinghelp is on a distinguished road
Exclamation C++ Coding Problem: Poker Program

I must write a program that will figure out the value of a hand of 3 cards. I can use if statements, and if else, and other things of that nature. I must generate three random numbers, for the 3 cards, while making sure they are not duplicates....then i must find a way to label the cards by rank and suit somehow, from 1 - 52. The program should function like a poker game, the user is dealt three random cards, and it should tell the user what type of hand they have (straight, flush, etc.)....And I must loop the whole thing so the user can elect to play again.

I am a beginner so i do not kno much about c++, and im struggling with this one greatly, i have to get it done within 24 hours, and im lost right now.

What i have been able to do:
write if statements that print to the screen saying, card 1 is this suit, and then later saying, card 1 is this rank. i dont know how to combine them saying, card1 is a 2 of hearts, etc.
I thought i would have trouble with determining the different hands, such as straights and stuff, but i havent even got that far...i just have a mess of code testing the waters to see wut i kno how to do....

if necessary, i will post my code, but i wont unless asked because it is not close in any manner to being what i want it to be.

Please, some advice? clues? Im really lost, and time is of the essence. Thanks in advance for all those who will be helping me here.
ineedcodinghelp is offline  
profile.gif sendpm.gif find.gif Reply With Quote
Old Sponsored Ads   # a.
Ads
Hosting Master
Join Date: Feb 2006
Location: HWHT
Posts: 1100
Ads is on a distinguished road



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
AdsPromoter is online
profile.gif sendpm.gif email.gif find.gif buddy.gif Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
if making a Bank related web sites then which one coding is secure PHP or Java ? pratik Programming Discussion 4 11-21-2008 07:46 AM
which sites secure PHP or ASP.Net coding related pratik Programming Discussion 3 10-10-2008 02:20 PM


All times are GMT. The time now is 07:59 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.