[Gllug] Somewhat OT - (GNU) C++

Adrian McMenamin adrian at newgolddream.dyndns.info
Mon May 24 14:47:08 UTC 2010


Am I losing my marbles or is GNU g++ broken when this code:

#include <iostream>
using namespace std;

int main()
{        
         for (int x = 90; x > 20; x--)
         {       cout << x << " ";
         }
}

outputs integers in reverse order from 90 to 21??


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list