>>Are the progams (between ***s below) all separate sample program?
Each of them are individual programs, you *cannot* put them together in a single source file (remember, only ONE 'main()' is allowed per program). Apart from that, I can't see code that would be specific to any compiler. What errors are you getting?
Main Topics
Browse All Topics





by: KdoPosted on 2007-08-28 at 08:03:07ID: 19783668
Hi ExpExchHelp,
Like you, my Borland C++ is pretty dated, but I do a lot of C++ work, mostly with the C++ Builder. It's truly a different animal than is the "plain" C++ compiler.
Offhand, I suspect that the lines "using namespace std;" are the issue. Try deleting them or replacing them with one or both of:
#include <stdlib.h>
#include <stdio.h>
Good Luck,
Kent