Syntax errors (if C++):
Line 14-16: bool is a C++ reserved word. You can't use it as a variable name in a C++ program.
line 30: new is also a C++ reserved word.
This looks like a C only program. Make sure "Compile C as C++" option is turned off in your compiler.
sorry some stupid connection mistake ...exactly that!
i wrote that as a code in netbeans, when i compiled it, its works, but when i try compil that code on our server a lots of errors start bugging me... i dont relised that c++ compile is turn on ...
thanks :)