FA> I mean, it's great to have a code that can be executed on several
Operative
FA> Systems, but I haven't found a program that is portable (or else I
aven't
FA> realised), so that I don't understand why is it so important for a code
o
FA> be portable......
To make a c++ program portable, don't use non-portable libraries
or assumptions about a specific architecture.
There are libraries that are native to DOS only others native
to UNIX only - don't use them.
Don't use assembly language, direct memory access, or unfortunately
assumptions about the size of primitive data types. Even thought
a char is a byte on every system I've used, and int may be 2 or
4 bytes, and a long int may be 4 or 8 bytes.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)
|