#include
using namespace std;
void function()
{
string str("a string");
int i(10);
ofstream of("/tmp/yourlogfile");
of << "string : " << str << 'int ' << i << endl;
}
#include
using namespace std;
void function()
{
string str("a string");
int i(10);
ofstream of("/tmp/yourlogfile");
of << "string : " << str << 'int ' << i << endl;
}