void defaultFieldSave(fstream& file, FieldType* siteData, int components) { file.precision(7); file.width(file.precision()+7); file.setf(fstream::scientific | fstream::showpos); file<<siteData[0]; for(int i=1; i<components; i++) { file<<" "<<siteData[i]; } file<<endl; }
void display(start *plist,float n) { start p,q; p=Getnode(); q=Getnode(); if(Emptynode(plist)) { fp3<<"Khong co gi hien thi"; return; } p=*plist; q=*plist; int dem=0; while(q!=NULL) { dem++; q=q->next; } fp3<<dem<<'\n'; cout<<dem<<'\n'; while(p!=NULL) { fp3.precision(0); cout.precision(0); fp3<<p->infor.tu<<" "<<p->infor.solan/n; cout<<p->infor.tu<<" "<<p->infor.solan/n; p=p->next; fp3<<'\n'; cout<<'\n'; } }
void ossimRpcModel::saveRpcModelStruct(fstream &fs)const { fs<<"thePolyType ="<<char(thePolyType)<<endl; fs<<"theIntrackOffset ="<<theIntrackOffset<<endl; fs<<"theCrtrackOffset ="<<theCrtrackOffset<<endl; fs<<"theIntrackScale ="<<theIntrackScale<<endl; fs<<"theCrtrackScale ="<<theCrtrackScale<<endl; fs<<"theCosMapRot ="<<theCosMapRot<<endl; fs<<"theSinMapRot ="<<theSinMapRot<<endl; fs<<"theBiasError ="<<theBiasError<<endl; fs<<"theRandError ="<<theRandError<<endl; fs<<endl; fs<<"theLineScale ="<<theLineScale<<endl; fs<<"theSampScale ="<<theSampScale<<endl; fs<<"theLatScale ="<<theLatScale<<endl; fs<<"theLonScale ="<<theLonScale<<endl; fs<<"theHgtScale ="<<theHgtScale<<endl; fs<<"theLineOffset ="<<theLineOffset<<endl; fs<<"theSampOffset ="<<theSampOffset<<endl; fs<<"theLatOffset ="<<theLatOffset<<endl; fs<<"theLonOffset ="<<theLonOffset<<endl; fs<<"theHgtOffset ="<<theHgtOffset<<endl; fs.setf(ios::fixed, ios::floatfield); fs.precision(6); //fs<<"theLineNumCoef ="; for(int i = 0;i < 20;i++) { fs<<setw(10)<<theSampNumCoef[i]<<"\t"; fs<<setw(10)<<theSampDenCoef[i]<<"\t"; fs<<setw(10)<<theLineNumCoef[i]<<"\t"; fs<<setw(10)<<theLineDenCoef[i]<<"\n"; } fs<<endl; //fs<<"theLineDenCoef ="; //for(int i = 0;i < 20;i++) //{ // fs<<theLineDenCoef[i]<<"\t"; //} //fs<<endl; //fs<<"theSampNumCoef ="; //for(int i = 0;i < 20;i++) //{ // fs<<theSampNumCoef[i]<<"\t"; //} //fs<<endl; //fs<<"theSampDenCoef ="; //for(int i = 0;i < 20;i++) //{ // fs<<theSampDenCoef[i]<<"\t"; //} fs<<endl; }