Waitrud Weber’s blog

things and reminders for memories

2019-02-01から1ヶ月間の記事一覧

Code Analyzer: C-Analyzer and improvement 002

When we use tokenizer, we just call getToken: And getToken must memory the index of start and end of token. === aToken.cpp === 13 :char* aToken::getToken( FILE *fp, int *index, int *file_end ) 14 :{ 15 : char dummy[256]; 16 : int mode_toke…

Code Analyzer: C-Analyzer and improvement

When we use tokenizer, we just call getToken: And getToken must memory the index of start and end of token. 1 :#include 2 :#include 3 : 4 :#include "parse.h" 5 :#include "aToken.h" 6 : 7 :int parse ( char* filename ) ; 8 :int filesize( FIL…

3D: Use Arrows

Pointer of class doesn't allow asterisk(*) but does arrow(->). So, I'm going to make all function parameters pointer reference like Java and we could obvisously understand the codes. // // copy all points and would like to refer to points …

3D: Print axes 002 and quarter view

3d

Choose Display 3D and push enter, so you could see a triangle wire and axes. I'm pleasure if you download the below.https://github.com/WaitrudWeber/source_zip/blob/master/display-20190214-001.zip Please reffer to the below for compilation.…

3D: Print axes

3d

Choose Display 3D and push enter, so you could see a triangle wire and axes. I'm pleasure if you download the below.https://github.com/WaitrudWeber/source_zip/blob/master/display-20190207-005.zip Please reffer to the below for compilation.…

3D: Print a triangle

Choose Display 3D and push enter, so you could see a triangle wire. I'm pleasure if you download the below.https://github.com/WaitrudWeber/source_zip/blob/master/display-20190203.zip Please reffer to the below for compilation.https://waitr…

formula 3

Basically, a, b, c, d : constantx, y, z, d : arbitaryax + by + cz + d = 0 If we has 3sete of ( x, y, z ), we could the above formula. And, a + bx + c + d = ax + 2c if we found the above, we solved it lke the following: a = ba + c + d = 2c …

WM_PAINT doesn't work well.

If you comment out the below, the program doesn't work even doen't dispatch event:WM_PAINT. wButtonController.cpp::line::187..137:void wButtonController::ProcessWmKeyup () {...185: this->event->main_mode = m_mode;186:187: InvalidateRect( t…