CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: GCDEF

Search: Search took 0.40 seconds.

  1. Thread: An Event Planner

    by GCDEF
    Replies
    8
    Views
    9,906

    Re: An Event Planner

    You're close. The missing piece is adding 1 to the number of kegs if the number of people isn't divisible by 20. You can use the modulus operator (%) to determine that.
  2. Thread: An Event Planner

    by GCDEF
    Replies
    8
    Views
    9,906

    Re: An Event Planner

    I thought I did. I pointed out some places where you're going astray, but I can't give you the understanding that you lack. Go back and read the chapters on the basics in whatever book you're using...
  3. Thread: An Event Planner

    by GCDEF
    Replies
    8
    Views
    9,906

    Re: An Event Planner

    Your code is pretty confused. Take it one step at a time.

    First, don't name a variable the same as a function. You'll confuse yourself.

    You're calling beer with an int reference called people...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured