smartnosex
March 23rd, 2003, 08:45 AM
Is there any helper programs? Thank you.
|
Click to See Complete Forum and Search --> : I gotta rewrite a CPP program to ansi C programm. help smartnosex March 23rd, 2003, 08:45 AM Is there any helper programs? Thank you. kakalake March 23rd, 2003, 12:33 PM Use your brain. Sorry ;-) Gabriel Fleseriu March 23rd, 2003, 02:04 PM 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. Alex Rest March 24th, 2003, 03:37 PM 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 . codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |