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

Re: Borland Turbo C++ 3.0 for dos




email me the code and ill take a look at it ...

and you might find out if borland 3 for dos is a 16 or 32 bit compiler (i
suppose i can look on borlands site or something but find out from the
borland docs)

if all he is doing is multiplying matrices then he should only really be
#include-ing stdio.h (or iostream.h) and maybe math.h

casey boone
computer science major @ southeast missouri state university

"c > * > vb" - anonymous

----- Original Message -----
From: Mike Sullivan <lists@galileo.math.siu.edu>
To: <silug-discuss@silug.org>
Sent: Saturday, September 04, 1999 1:35 PM
Subject: 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.
>


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