User Profile

Collapse

Profile Sidebar

Collapse
lblock
lblock
Last Activity: Sep 22 '06, 07:12 PM
Joined: Sep 12 '06
Location: bonnots mill
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lblock
    started a topic Can I get help with code for game of craps
    in C

    Can I get help with code for game of craps

    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...
    See more | Go to post

  • lblock
    replied to need help
    in C
    thanks for the help.
    See more | Go to post

    Leave a comment:


  • lblock
    replied to need help
    in C
    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...
    See more | Go to post

    Leave a comment:


  • lblock
    replied to need help
    in C
    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...
    See more | Go to post

    Leave a comment:


  • lblock
    started a topic need help
    in C

    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"<<...
    See more | Go to post
No activity results to display
Show More
Working...