Click here to Skip to main content
15,885,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to find difference between two dates Pin
Le@rner12-Jul-10 2:25
Le@rner12-Jul-10 2:25 
GeneralRe: How to find difference between two dates Pin
raju_shiva12-Jul-10 19:01
raju_shiva12-Jul-10 19:01 
GeneralRe: How to find difference between two dates Pin
Le@rner12-Jul-10 19:44
Le@rner12-Jul-10 19:44 
Questionadd the specified number of days to current date Pin
zon_cpp11-Jul-10 22:34
zon_cpp11-Jul-10 22:34 
QuestionRe: add the specified number of days to current date PinPopular
CPallini11-Jul-10 22:55
mveCPallini11-Jul-10 22:55 
AnswerRe: add the specified number of days to current date Pin
zon_cpp11-Jul-10 23:34
zon_cpp11-Jul-10 23:34 
AnswerRe: add the specified number of days to current date Pin
rahul.kulshreshtha22-Jul-11 19:17
rahul.kulshreshtha22-Jul-11 19:17 
Questioni am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
kcta559711-Jul-10 18:28
kcta559711-Jul-10 18:28 
this is the sourse code............ and i don know what to do next....
could anyone plz check if this sourse code is right and plz help
me to finish full baccarat program?
i am always tryin and tryin but c is hard...






#include <stdio.h>
#include <stdlib.h>
int drawCard();
int get2cards(int who);
void get3rdCard(int who, int *p_total);
main() {
int playerTotal; BankerTotal;
srand(time(NULL));
playerTotal = get2cards(1);
BankerTotal = get2cards(2);
if (playerTotal < 6)
get3rdCard(1, &playerTotal);
}
int drawCard() {
int value;
value = rand() %13 + 1;
return value;
}
int get2cards(int who) {
int total;
total = drawCard();
total += drawCard();
return total;
}
void get3rdCard(int who, int *p_total) {
int card3;
card3 = drawCard();
}





o.... and the output.... has to be like this...
plz help me.. thank you very much

PLAY BACCARAT Enter bet winner (1-Player/ 2-Banker): 0
Invalid - must choose winner as 1-player or 2-Banker: 3
Invalid - must choose winner as 1-player or 2-Banker: 2
Enter bet amount (2-20): 21
Invalid - bet must be between 2 and 20: 1
Invalid - bet must be between 2 and 20: 10 Player Cards: 7 8
Player total: 5 Banker Cards: 4 Queen
Banker total: 4 Player draws again: a(n) 10 to get total of 5
Player wins
Your bet lost!
AnswerRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
Iain Clarke, Warrior Programmer11-Jul-10 22:53
Iain Clarke, Warrior Programmer11-Jul-10 22:53 
GeneralRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
Niklas L11-Jul-10 23:03
Niklas L11-Jul-10 23:03 
GeneralRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
CPallini11-Jul-10 23:06
mveCPallini11-Jul-10 23:06 
GeneralRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
Niklas L11-Jul-10 23:09
Niklas L11-Jul-10 23:09 
GeneralRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
Iain Clarke, Warrior Programmer11-Jul-10 23:15
Iain Clarke, Warrior Programmer11-Jul-10 23:15 
GeneralRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
CPallini11-Jul-10 23:04
mveCPallini11-Jul-10 23:04 
JokeRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
Iain Clarke, Warrior Programmer11-Jul-10 23:16
Iain Clarke, Warrior Programmer11-Jul-10 23:16 
GeneralRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
CPallini11-Jul-10 23:20
mveCPallini11-Jul-10 23:20 
GeneralRe: i am makeing bacarrat in c language.... it's really hard could anyone plz help? Pin
Iain Clarke, Warrior Programmer11-Jul-10 23:25
Iain Clarke, Warrior Programmer11-Jul-10 23:25 
QuestionUpdateDriverForPlugAndPlayDevices failed,errcode=0x103 Pin
xjh_sz11-Jul-10 17:17
xjh_sz11-Jul-10 17:17 
AnswerRe: UpdateDriverForPlugAndPlayDevices failed,errcode=0x103 Pin
Peter_in_278011-Jul-10 17:46
professionalPeter_in_278011-Jul-10 17:46 
GeneralRe: UpdateDriverForPlugAndPlayDevices failed,errcode=0x103 Pin
xjh_sz11-Jul-10 18:01
xjh_sz11-Jul-10 18:01 
QuestionRead CPU temp Pin
VeganFanatic11-Jul-10 4:39
VeganFanatic11-Jul-10 4:39 
AnswerRe: Read CPU temp Pin
Code-o-mat11-Jul-10 10:48
Code-o-mat11-Jul-10 10:48 
GeneralRe: Read CPU temp Pin
VeganFanatic11-Jul-10 10:50
VeganFanatic11-Jul-10 10:50 
GeneralRe: Read CPU temp Pin
Code-o-mat11-Jul-10 10:58
Code-o-mat11-Jul-10 10:58 
GeneralRe: Read CPU temp Pin
VeganFanatic11-Jul-10 11:01
VeganFanatic11-Jul-10 11:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.