If I have for example this code:
#include <iostream>
#include <cstdio>
#include <fstream>
#include <string>
When I create an empty project with Visual C++ 2008, how to insert this code in every .cpp file I create in this project?
You can create an item template which would be a .cpp file with all the necessary includes. Then when you add a file to the project you would add that item instead of an empty .cpp file.
Item templates are located here:
%USER%\Documents\Visual Studio 2008\Templates\ItemTemplates
Guide on creating project and item templates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With