結果の保存

   

    《例》

            void __fastcall TForm1::Button5Click(TObject *Sender)       //Button5Clickの動作
                   {
                   if (SaveDialog1->Execute())
                   {
                    if((fp=fopen(SaveDialog1->FileName.c_str(),"w"))!=NULL);   //file open
                     {
                       for(j=0;j<=i;j++)                                           //i=データ数

                        {
                         fprintf(fp, "%f\t%f\n",XD[j],YD[j]);                                     //配列 XD[j],YD[j]の出力
                        }
                       fclose( fp );                            
                     }
                   }

 


戻る