First, a for loop can have a null statement, and it can be terminated with a
semicolon, so that
for (si = -1; si < 0; --si)
;
is legal, and basically executes --si until it is no longer true that si < 0. It is
good style here to make the fact that this is a loop with...
No, there is no "eval" in C, or anything similar.
C is typically compiled to an efficient stand-alone executable, and in order to
have an "eval" the compiler would have to be packaged with the executable.
It is possible to write a sort of interpreter in C, and if you're...
There are cross-platform graphics environments, although they are not
standard C. One popular one is Qt (see http://www.trolltech.com) (no
endorsement implied here; I've never used it), and there are others.
If you're planning to write a commercial application, write it so that it looks
like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.