Search:

Type: Posts; User: brewgrass

Search: Search took 0.01 seconds.

  1. Yes Ocifer, adding more variables allowed me to...

    Yes Ocifer, adding more variables allowed me to make things work. As a beginner my code is probably bulkier than it has to be, but I am determined to learn so neater code will surely come when I have...
  2. Thank you all for helping me solve my math...

    Thank you all for helping me solve my math operations dilemma. I now need to add an if statement because the program crashes if any of the operations tries to divide by 0.
    This is fun and...
  3. Thank you claudiu, but i still do not understand...

    Thank you claudiu, but i still do not understand my error. I changed int for quarters, dimes, nickels, and pennies to const int so they always retain their value.
    total = total % dimes (for...
  4. Trouble with math operations-Beginner program

    I have been building a very basic program to convert dollars and change to coins. This program is similar to an example in the book I am using. I try to make small changes to ensure that I understand...
  5. Replies
    6
    Views
    1,506

    Thank you all for your help. I have a better...

    Thank you all for your help. I have a better understanding of what I need to do now. I will work on this program and see if I can get it operational. At least if I need help again, I can provide code...
  6. Replies
    6
    Views
    1,506

    Thank you both for your replies. Sipher, I...

    Thank you both for your replies. Sipher, I understand that the truncate feature will round down for numbers less than .5. What is confusing me is how I need to declare the user-entered numbers so...
  7. Replies
    6
    Views
    1,506

    Rounding decimals

    I am new to programming and chose C++ as a starting language. I am creating a program (for practice). I want the user to enter 5 numbers that are a combination of integers and decimals. How would I...
Results 1 to 7 of 9