// Principle: how to get a computed number to a file name // a cleaner way: see basic/string_to_filename.cpp #include #include #include #include using namespace std; int main() { stringstream s; const string str = "res"; for (unsigned i=1;i<5;i++){ s<