Help Needed!

This is a discussion on Help Needed! within the C Programming forums, part of the General Programming Boards category; i need help on my assignment on how to program craps in C..i've attached the file..please help me out...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    1

    Help Needed!

    i need help on my assignment on how to program craps in C..i've attached the file..please help me out
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    127
    Your first order of business should be to write the code to throw one die and return the result. From there you can easily modify the code to throw two dice. Once you have that part running properly, the rest of the program is simple calculation of sums and program framework to interact with the user.

    For the operation of tossing one die, you will likely end up generating random numbers with rand() and srand(). You can find out more about how to use those two functions here. Once you have something to show for yourself, I'll be happy to help you more.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 10:32 AM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 12:55 PM
  3. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-01-2004, 12:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21