Hi i wanted to know is there a C++ to ansi C convertor available?
As i have a C++ program and would like to use it in C
thanks
kendals
Hi i wanted to know is there a C++ to ansi C convertor available?
As i have a C++ program and would like to use it in C
thanks
kendals
... ?
C and C++ are pretty much the same- why not just use a C++ compiler, so you can use both C and C++?
If it's just a console program, you can change the cout to printf, etc., include standard C libraries like stdio and stdlib, "unwrap" classes, etc.
I doubt it to tell you the truth. Like rmullen3 said, C and C++ are pretty much the same. However, their differences are kind of hard to deal with. I think it would be tough to convert an ANSI C++ Object Oriented program to an ANSI C Procedural program.
Why not just convert it yourself? Why does it matter what language it is?
Ill try to convert it, i found like c to java convertors, i just thought that you might get one for c++ to c. I wanted to convert it because i have a prog i made and wanted to use it in dos.
thanks anyway.
Kendals