#include<iostream> #include<fstream> using namespace std; int main() { ofstream outfile; char *file_img = "122890"; char outRect[100]; sprintf(outRect, "%s\\outRect1.txt",file_img); //ofstream outRect1(outRect1);//寫入識(shí)別結(jié)果到txt文件 得先創(chuàng)建或者已有122890文件夾 cout<<outRect<<endl; //outfile.open("outRect1.txt") outfile.open(outRect); float b = 0.5; outfile<<b<<endl; outfile.close(); } |
|
來(lái)自: 昵稱14216904 > 《技巧》