HOw to Change the C programme into Cpp Programme
R Thread Starter Rajadurai Joined Feb 6, 2011 1 Feb 6, 2011 #1 HOw to Change the C programme into Cpp Programme
AlexR Joined Jan 16, 2008 732 Feb 6, 2011 #2 Why do you want to change it? A C program should compile on a Cpp compiler without any modification.
spinnaker Joined Oct 29, 2009 7,830 Feb 7, 2011 #3 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.
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.
E elavarasu Joined Feb 9, 2011 1 Feb 9, 2011 #4 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 a)borland C++ b)turbo c
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 a)borland C++ b)turbo c