Re: Problem with CArray inside a structure
Hi Paul,
As for many, This particular community (CodeGuru) has taught me a lot. Thanks once again.
as you mentioned can I do all these operation, whatever i do using Visual C++ editor, Can I do the same using any older version of compiler like Borland C++ or Turbo C++?
I remember those were the compliers i used during my school days :-)
Re: Problem with CArray inside a structure
Quote:
Originally Posted by poshyradha
as you mentioned can I do all these operation, whatever i do using Visual C++ editor, Can I do the same using any older version of compiler like Borland C++ or Turbo C++?
Not the older versions of the compiler, as far as I know. The C++ language was standardized in 1998, and these compilers are older than 1998.
You would need to use the latest "CodeGear" version of C++ Builder (which used to be the Borland compiler), which is ANSI compliant.
Quote:
I remember those were the compliers i used during my school days :-)
In this day and age, those old compilers shouldn't be used for newcomers learning the language because of the basic differences between writing programs the pre-ANSI standard way, and writing programs using the true ANSI standard C++ way.
For example:
Code:
#include <iostream.h>
int main()
{
cout << "Hello World";
}
This no longer compiles on an ANSI C++ compiler. It won't even compile using the latest Visual C++ compilers. Here is the correction:
Code:
#include <iostream>
int main()
{
std::cout << "Hello World";
}
Unfortunately, it seems that many new people are forced to use the old technology by their school or professors, and end up writing code that no longer compiles properly with modern compilers (which most companies use). So these students wind up wasting time learning C++ that, for the most part, doesn't exist for modern compilers.
Regards,
Paul McKenzie
Re: Problem with CArray inside a structure
Dear Paul,
U are well said........
In many industry the acedemics are entirely different from day-to-day industry practice
any how once again thanks a lot for your valuable time and patience you spent in giving me a clear cut explanation with examples
You people are doing a great job, It is of great help for freshers like me...
Thanks you once again
Regards
RK