Tag Info

New answers tagged

0

If you want to use graphics.h in ubuntu or any other linux distro, then I prefer libxbgi. It can do almost all the things that you expect from the graphics.h for windows. You can download it from here: http://libxbgi.sourceforge.net/ Otherwise if you want to do some high end graphics then you are there for SDL(which is mostly for programming video ...


1

First take a look in /usr/include or /usr/local/include. If you find nothing there, try : `gcc -print-prog-name=cc1plus` -v This command asks gcc which C++ preprocessor it is using, and then asks that preprocessor where it looks for includes. You will get a reliable answer for your specific setup. Likewise, for the C preprocessor: `gcc ...


1

The result before -1 is larger than its maximum, when it tries to compute 2*31 for a 4 byte integer, the compiler found it will overflow so it stopped. You can try this with just: i3 = 2**31 The compiler should tell you Integer too big for its kind at (1). This check can be disabled with the option -fno-range-check An easy way to workaround this is ...



Top 50 recent answers are included