hi every body i have a strange problem i write a code in c++ complied it successfully and run it successfully. i compiled with following command g++ 1.c -o abc to run program i use ./abc now my problem is that i write a another code in c++ like
#include <fstream>
#include<iostream>
using namespace std;
int main()
{
ofstream SaveFile("/home/hadoop/project/hadoop-0.20.0/conf/core-site2.xml");
SaveFile <<"<configuration>";
SaveFile<<endl;
SaveFile<<"<property>";
SaveFile<<endl;
savefile.close();
return 0;
}
now i want to run abc in this code how to do this ? how to use or run abc in this file? how to use ./abc in this program ?