Discussion in 'Programmer's Corner' started by Rajadurai, Feb 6, 2011.
HOw to Change the C programme into Cpp Programme
Why do you want to change it? A C program should compile on a Cpp compiler without any modification.
Add a PP???
CPP compilers can compile C.
You will need to give a whole lot more detail if you want help.
But a course in CPP programming is well beyond the scope of this forum. There are many classes that can be found online.
It is possible both c programs and c++ programs runs under c++compilers.
if you are write a program in c platform ,you will need to save the program(filename.c)(.c extension)(for ex:coffee vending machine.c)
if you are write a program in c++ platform ,you will need to save the program(filename.cpp)(.cpp extension)(for ex:coffee vending machine.cpp)
but the only problem is ,if you are write a pgm in c platform using it's function,it will not to convert a .cpp file
because input and output functions are different.
the upcoming versions compilers are