Search:

Type: Posts; User: davis220

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    1,424

    "Variable not initialized"

    This is a class that I made to test my if-else statement for calculating withholding tax for gross pay. The error I get is this:
    error: variable tax might not have been initialized...
  2. I need to make cases in a switch statement over certain ranges

    Here is the half code / half psuedocode of what I need to make.
    I figured that I should use logical operators, but I couldn't find a way to make it work.

    double gross;
    double taxPercent;

    ...
Results 1 to 2 of 2