"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,