Daniel.V
Daniel.V

Reputation: 2492

Conversion of header into cpp file using Visual Studio

I have folder contain a Visual Studio project and contain lots of .h and .cpp file I want to put all of this .h and .cpp file into just one main.cpp file is there any way to do that with Visual Studio or any other things??

Upvotes: 0

Views: 444

Answers (2)

Amen
Amen

Reputation: 1633

Depending on the functions and libraries you are using it can/can't be done. if all the functions are compilable in Turbo and the project isn't that professional which I think it isn't based on you saying you want it for your course project you can simply copy everything in a cpp and convert the header files into simple classes. anyway Turbo C++ is Dead!

Upvotes: 0

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385174

You cannot do this trivially. You would have to refactor, as merging source files can introduce semantic problems. It's best to not do this at all.

Upvotes: 3

Related Questions