aspose file tools*
The moose likes C / C++ and the fly likes malloc undeclared error in simple linked list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "malloc undeclared error in simple linked list" Watch "malloc undeclared error in simple linked list" New topic
Author

malloc undeclared error in simple linked list

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1001
    
    2
hello,
i am trying to create a simple linked list, but i m getting one error there, below is my code:


Error is:
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1001
    
    2
actually i wan not including the library file #include<stdlib.h>, therefore the error was.
but now i have included and the error is gone, but one got more error..
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1001
    
    2
okay....
solved...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: malloc undeclared error in simple linked list