i have this code that plays the game of craps, but i need to be able to take how much they brought and how much they want to bet. show the number on the dice and tell them it they won or lose and what their money is after their roll. and have to ask if they want to play again.
#include <iostream>
#include <cstdlib>
#include <time.h>
using namespace std;
const int NUM_GAMES...
User Profile
Collapse
-
Can I get help with code for game of craps
-
now i have this and it displaies all of the right ones through ten and then when it gets to the teens it displaies "nineteen nine bottels of beer on the wall. it never even gets to the other numbers it will start over again with zero after nineteen nine.
#include <iostream>
#include <cstdlib>
using namespace std;
string result = " ";
// Function prototypes
void print_stanza(in t...Leave a comment:
-
this is what i have now but still having the same problem with not being able to display the number name and not the number. thank for the last help.
#include <iostream>
#include <cstdlib>
using namespace std;
// Function prototypes
void print_stanza(in t numstanzas);
void print_num_in_en glish(int num);
// =============== =======
// print_num_in_en glish...Leave a comment:
-
need help
this is what i have and i need to display the actual number name not the number itself.
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
int beers=99;
while (beers>0)
{
cout <<beers <<" bottles of beer on the wall"<< endl;
cout<< beers <<" bottles of beer"<<...
No activity results to display
Show More
Leave a comment: