|
| ||||||||||
| Tags: c program, convert, convert c program |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Convert C++ program into C
|
|
#2
| ||||
| ||||
| Re: Convert C++ program into C
in general, C is compatible with C + +. If you create C code, you're almost sure it will work directly... C + + will ask you to castes such as malloc (it's dirty, but it works) The cleanest method is to keep your portion C in one (or more) of your files, which will be named. C and listed, you can save files. Cpp which call functions. C (via a. H) it works very well ... |
|
#3
| |||
| |||
| Re: Convert C++ program into C
C++ is a superset of C so any C program can be compiled and run as a C++ program(doesn't change the fact that it is really C). Do not forget a extern "C" when it includes a header in C code C + + (so that the linker is found there; the agreement to generate the symbols are different between C and C + +). |
|
#4
| |||
| |||
| Re: Convert C++ program into C
The C version of the program uses stack library. The C++ version uses a stack object to implement the program. In C program require a function call for every single compare, whereas the C++ implementation would allow the compiler to inline the integer comparison calls. |
|
#5
| |||
| |||
| Re: Convert C++ program into C
tell me how may i convert C++ coding to C syntax .... rply me fast ....!! |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Convert C++ program into C" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert C++ Program to Java Code!! Please help | jessesaini | Software Development | 1 | 24-04-2012 12:24 AM |
| convert C++ program in Java code | vaibhavsri | Software Development | 7 | 16-07-2010 10:08 AM |
| Program to convert xif | SmokiN | Windows Software | 3 | 22-06-2009 09:13 PM |
| How To Convert Any Windows Program to Run on a U3 Drive | Ebenezer | Operating Systems | 2 | 24-04-2009 03:01 PM |
| How can I convert my java program to an .exe file? | Baran | Software Development | 3 | 02-03-2009 06:04 PM |