c******e 发帖数: 15 | 1 I got a program in c++ (5000 lines code), and need to convert it to ansi C.
What changes I have to make to complete this job?
Thanks! | z*****n 发帖数: 7639 | 2 1. turn all the classes to be structs/unions by kicking out
member functions
2. trun all the kicked member functions into standard C
functions and treat those default data members as arguements.
3. if there is any function overloading, redeclare them.
C.
【在 c******e 的大作中提到】 : I got a program in c++ (5000 lines code), and need to convert it to ansi C. : What changes I have to make to complete this job? : Thanks!
| c******e 发帖数: 15 | 3 Thanks!
And i can think couple more:
4. reorganize data based on their private, public descriptors.
5. remove constructors and destructors, initialize data defined within an
object of a specified class.
Are there anything else?
Not sure I'm using the correct terminology.
is 1) also mean to break down encapsulation (member data and member function
)?
【在 z*****n 的大作中提到】 : 1. turn all the classes to be structs/unions by kicking out : member functions : 2. trun all the kicked member functions into standard C : functions and treat those default data members as arguements. : 3. if there is any function overloading, redeclare them. : : C.
|
|