[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Borland Turbo C++ 3.0 for dos




A student has e-mailed me a c++ program as part of his homework.
He uses Borland Turbo C++ 3.0 for dos while I'm using red hat linux.
When I first tried to compile his program I got:

> g++ hw2.cpp 
hw2.cpp:9: conio.h: No such file or directory
hw2.cpp:10: process.h: No such file or directory

He sent me the missing files, but then they need another file
I don't have: "_defs.h"

He changed the progran so that it does not use conio.h or process.h.
This version of his program did compile but the output looks bad:

Programs> a.out
This program multiplies two matrices A & B and outputs the result.
Please enter the size of matrix A.
Number of rows? 2
Number of columns? 2
                                        Enter a value for cell [1,1]: 1
                                        Enter a value for cell [1,2]: 1
                                        Enter a value for cell [2,1]: 1
                                        Enter a value for cell [2,2]: 1

A =
                2x2
      1       1 
      1       1 
                
Please enter the size of matrix B.
Number of rows? 
[Actually there are a bunch of special characters in the output, e.g.
greek letters, and upside down question marks.]

So, my question is, how can this student write platform independent
programs while using Borland Turbo C++ 3.0 for dos? 

Mike Sullivan
Math, SIUC


--
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.