About C & C++
1 posts in topic
Flat View  Flat View

Posted By:   neena_S
Posted On:   Wednesday, October 16, 2002 10:41 PM

hello, i want to know how to convert a C program to C++. Do we need to rewrite the whole program or few changes are needed. Some extern function is to be used or not?

Re: About C & C++

Posted By:   Simon_Ablett  
Posted On:   Thursday, October 17, 2002 07:28 AM

Do you mean that you wish to compile a C program with a C++ compiler or that you wish to 'objectify' it (i.e. convert a procedural application in to an OO form)? If the former then that's easy since C++ is a derivative of C a C program should compile with a C++ compiler (but not the other way around). If the latter then you need to redesign from scratch.

About | Sitemap | Contact