|
-
March 23rd, 2003, 09:45 AM
#1
I gotta rewrite a CPP program to ansi C programm. help
Is there any helper programs? Thank you.
-
March 23rd, 2003, 01:33 PM
#2
Use your brain. Sorry ;-)
-
March 23rd, 2003, 03:04 PM
#3
Re: I gotta rewrite a CPP program to ansi C programm. help
Originally posted by smartnosex
Is there any helper programs? Thank you.
Yes. The Comeau C++ compiler translates the C++ code into C code. Have a look at www.comeau.com. However, the generated C code is not "human readable" -- the idea is not to take this code and use it as a codebase, but that is just a stage in the creation of the executable code.
-
March 24th, 2003, 04:37 PM
#4
For incapsulation you can use
a struct instead a class and the first parameter
of the c-function for pointer to the stract.
For inheritance you can use members of struct
type inside other struct.
For polymorphism you can use arrays of functions .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|