Search:

Type: Posts; User: GregBrannon

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    860

    Re: exercise 229

    Why are you just guessing what to do? You're better than that. The construct is:
    if ( condition )
    {
    // the body of the if clause goes here
    }
    else
    {
    // the body of the else clause...
  2. Replies
    7
    Views
    860

    Re: exercise 229

    That construct is certainly giving you errors. if and else are separate clauses. A proper else statement is not included inside the if clause.
  3. Replies
    7
    Views
    860

    Re: exercise 229

    KW's answer still applies, but in a more general sense: Enclose ALL clauses inside curly brackets, "{}".
Results 1 to 3 of 3