std::ofstream myout("/home/fff/tf_pose_z.txt");
float a,b;
myout<<a<<a<<b<<std::endl;
myout.close();
FILE * pFile_;
const char * pFileName="/home/fff/tf_pose_z.txt";
pFile_ = fopen(pFileName,"wt");
if ( NULL == pFile_ )
{
perror("打开文件失败");
}
if ( NULL != pFile_ )
fprintf(pFile_,"%.5f %.5f ", x, y);
fclose(pFile_);