No, there is no method to specify more than one file in a #include
preprocessor directive.
Many people get around this dilemma by creating a monster include file that has multiple #include
statements:
monster_include.h
#ifndef MONSTER_H
#define MONSTER_H
#include <iostream>
#include <string>
#endif
The disadvantage is that if any of these include files are changed, including ones not used by the source file, the source file will still be rebuilt.
I recommend creating an empty stencil header file and an empty stencil source file, then adding #include
as required. The stencil can be copied then filled in as appropriate. This will save more typing time than use the megalithic include file.