Sunday, July 26, 2009

Is TURBO C++ Compiler different then boreland compiler in sence of source code rules ??

I was practicing c++ in turbo compiler but somehow need to switch to borland compiler. o rules differ in this one in sence of source code %26amp; any special header file need to be imported as the compliler borlan was errroring in cout even when iostrem was imorted. ??

Is TURBO C++ Compiler different then boreland compiler in sence of source code rules ??
Without knowing exactly which versions of what you were using, I'd take a guess at it that *MIGHT* help. Try these 2 things:


1) In the #include directive(s) remove the '.h' file extension. This is part of the newer ANSI specifications for C++. Borland C/C++ later than 5.0 should implement this, Turbo C++ will not.





2) After all the "#include" directives, use the statement 'using namespace std;' . This is another part of the newer ANSI specifications for C++. Borland C/C++ later than 5.0 should implement this, Turbo C++ will not.





These are the most obvious differences that would likely occur assuming that you're using Turbo C++ and Borland C/C++ %26gt; 4.52. I hope this solves your problem. If not, you can contact me from my Answers User's page with further details.


No comments:

Post a Comment