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

Search:

Type: Posts; User: whitevandal

Search: Search took 0.02 seconds.

  1. Replies
    68
    Views
    58,348

    Re: Fun C++ Problem

    i is DEcremented, not INcremented. So i will= -1, -2, -3...etc until it passes -20.
  2. Replies
    68
    Views
    58,348

    Re: Fun C++ Problem

    What about

    int i, n =-20;

    ?

    Took about 5 minutes. I never would have thought of n+1. More than 3 solutions, I guess. : )
Results 1 to 2 of 3





Click Here to Expand Forum to Full Width

Featured