when compiling I am getting the following error
'NODE' undeclared (first use in this function)
and
each undeclared identifier is reported only once for each function it appears in
I have also attached the screen shot from the QT IDE
look's like the compiler is not able to pick up the definition of NODE structure
same happens in Netbeans IDE , interesting thing is if change the source file from c to cpp the error goes away .
Any help would be much appreciated .
I rather not do this, cause C way of compelling programmer to use struct key work makes the code more readable , I know in C++ it does not matter
any help in this regard would be much appreciated
Last edited by aamir121a; April 2nd, 2013 at 03:55 AM.
Re: 'NODE' undeclared (first use in this function)
Originally Posted by aamir121a
I rather not do this, cause C way of compelling programmer to use struct key work makes the code more readable
If you would rather not have the typedef because you think struct NODE is more readable, then write struct NODE instead of NODE, which is what I told you that you were missing in my previous post. I even showed you the line in which you wrote NODE instead of struct NODE. If you still cannot find and fix that, then I daresay that your claim that struct NODE is more readable than NODE has been disproved by yourself
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.