TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dizar mejzini
NA
4
1.9k
random numbers in c
Mar 3 2015 3:19 PM
I need a C program to simulate a card game. Assume that only 3, 4, 5, 6, and 7 playing cards are available. Player wants to two cards from the dealer (Prompt the cards). Program generates randomly the cards. The cards must store different variables. Then, write the playCard function that receives two cards as in integer type and returns 0 for losing and 1 winning. playCard function considers the sum of two cards and if the sum less than 10, the player wins. Otherwise, player loses. The results of the game must be given in the main function.
how i have to do this ?
Reply
Answers (
1
)
inheritance
CHECK A LISTVIEW WITH A SPECIFIC DATA