January 28th, 2010 09:51 PM
You can use forward declarations and hide the object implementation behind a pointer.
So A.h would look like
class B;
class A{
public:
A(){}
February 12th, 2009 09:56 PM
int a=5;
if (a==7||6||5||4||3||2)
is not going to do what you want it to (the condition will always be true). Instead do
if( a >= 2 && a <=7 )
// Do something
December 20th, 2007 09:12 PM
Use cygwin. It contains most of the tools that you accustom to (vi, emacs, gcc, gdb, etc). It is basically a linux like environment that runs on a windows platform.
I think that this is...
December 20th, 2007 04:13 PM
Just to answer my own question just incase anyone else faces this problem:
In gcc there are INFINITY and NAN defines in math.h. However you need to compile the source with gcc -std::c99. ...
December 19th, 2007 05:29 PM
But this could vary from compiler to compiler. I need a function or macro. Also what about Nan?
December 19th, 2007 04:41 PM
I was wondering what the equivalent to
numeric_limits<double>::infinity()
numeric_limits<double>::quiet_NaN()
numeric_limits<double>::signaling_NaN()
would be in C.
I have tried