However, that is not even close. One local university (GMU) assigns problems which are definitely NOT cross platform.
In general, it is good to teach these differences. However, in a beginning course, the teachers should not load the problem sets with this stuff. There is no way that the students could possibly have enough experience to debug compiler errors (differences).
|.cxx||I don't understand why teachers use .cxx instead of .cpp. The only purpose I see is to confuse the PC based compilers.|
|iostream||iostream is used to read data from the keyboard (via cin)
and to display data on the screen (via cout).
(Borland C++ supports
Set color and Goto xy)
This page also discusses namespaces and the standard templates - a relatively new C++ feature. Since it is not fully implemeted in all compilers, there are significant problems.
|fstream||fstream is used to read and write file on the disk. This discusses additional namespace problems.|
|Overloading Streams||How to overload streams to work with classes.|
|static const xxyy||Defining static const variables in a class - g++ allows it, Borland does not.|
|Blank Template||Used to create new pages with separate Borland, Microsoft, and GNU sections.|
#if !defined(__BORLANDC__) using namespace std; #endif