Home > Software engineering >  Reads a TXT file, using MFC drawing rectangular figure
Reads a TXT file, using MFC drawing rectangular figure

Time:10-14

Elder sister younger brother started learning c + +, you guide one

"Read a TXT file program, by reading the data in a TXT file (two integer variable rectangular length and width, two floating-point said rectangular center coordinates), using MFC to draw the rectangle"

Thank you for your attention

CodePudding user response:

CFile: : Open/Read/Close () to Read the file content to cstrings class object, using cstrings: : Tokenize parsing string to get all the data, then calculate according to the information center of the rectangle and width rectangle the RECT area,
  • Related