Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


#Actualcr88192

Posted 14 February 2013 - 12:58 AM

Also this is not related to your question but you may find it helpful anyway to know that when using C++ you should use the C++ headers instead of the C headers.
 
#include <math.h> #include <cmath>
#include <stdio.h> #include <cstdio>
 
 
L. Spiro

while fair enough, it is not made clear here that the code in question is C++, rather than C99 (clarification: C code looking like that given will generally be accepted by GCC, which implements C99 support, well, along with much of C11). (this comment is N/A if in-fact the OP is using C++).

#1cr88192

Posted 14 February 2013 - 12:28 AM

Also this is not related to your question but you may find it helpful anyway to know that when using C++ you should use the C++ headers instead of the C headers.
 
#include <math.h> #include <cmath>
#include <stdio.h> #include <cstdio>
 
 
L. Spiro

while fair enough, it is not made clear here that the code in question is C++, rather than C99.

PARTNERS