블로그 이미지
Leeway is... the freedom that someone has to take the action they want to or to change their plans.
maetel

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
  • total
  • today
  • yesterday

Category

2010. 7. 6. 23:51 Computer Vision
테스트: 아웃풋 수치 데이터를 파일로 기록하기

http://cplusplus.com/reference/clibrary/cstdio/fprintf/


#include <iostream>

int main (int argc, char * const argv[]) {

#include <iostream>
   
    FILE *fileI, *fileW;
    fileI = fopen( "image2d.txt", "w" );
    fileW = fopen( "world2d.txt", "w" );
   
    double ix = 1.1;
    double iy = 1.2;
   
    double wx = 2.1;
    double wy = 2.2;
   
   
    fprintf( fileI, "%lf\t%lf\n", ix, iy);
    fprintf( fileW, "%lf\t%lf\n", wx, wy);
   
   
    fclose( fileI );
    fclose( fileW );
   
    return 0;
       
}


posted by maetel