RP> You wouldnt happen to know of any program that can convert
RP> QuickBasic source code into C++ source code, would you?
If there was, you wouldn't be likely to want it!
QB is a fine compiler, and you can produce tightly written,
highly modularized, and very efficient code, using it.
However... And this is the Big However, C++ is a structured
Object Oriented language, which has tricks and goodies of
which QB programmers may only dream fondly.
I see there is a book called "Moving from QBasic to C", by
Greg Perry, available now. (see http://www.booksonline.com)
You might profit from obtaining this book and examining his
work. He takes the common BASIC commands, and supplies C
equivalents for them, in example.
At this point, you still won't have C++, but you will at
least be in the ballpark. If you know the syntax and methods
of OOP with C++, then you will easily be able to take C code
and derive C++ code therefrom.
Moving to C++ from QB is not easy. The initial learning
curve is difficult to negotiate. Programs written in QB may
best benefit from being ported to C++ by being entirely
rewritten. The most useful tool in using QB code to write a
C++ program will be the matched text strings, "/*" and "*/",
which should enclose the QB code and allow it to be used as
a development guideline.
Most of the QB tools will be easily matched or surpassed
by the C++ libraries, excepting perhaps string functions,
which you may easily surpass on your own, or, if you are
using another MS product, VC++, replace almost directly with
the CString class, which is easily duplicated in any C++
compiler by anyone with a fair knowledge of C++. Most
compilers do have a string class, but probably not as
versatile and full featured as what QB boasts.
Once you move into a Windows based environment and begin
event-oriented OOP, you will need to abandon nearly all you
have learned in QB aside from program logic and structure.
> ] "Does that motor sound funny to you?" : Buddy Holly.......
---
---------------
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)
|