头文件
#include "strstream.h"
#include "fstream.h"
#include "iomanip.h"
void __fastcall TForm1::BitBtn1Click(TObject *Sender)
{
int iLength=this->Edit1->Text.Length();
char *StrBuffer=new char[iLength];
ostrstream ofstr(StrBuffer,iLength);
ofstr<<setiosflags(ios::fixed|ios::showpoint)<<setprecision(StrToInt(this->Edit2->Text))<<StrToFloat(this->Edit1->Text)<<ends;
this->Edit3->Text=StrBuffer;
}