Home > Software engineering >  MFC in the custom a vector type, want to traverse the vector and the element to TXT file
MFC in the custom a vector type, want to traverse the vector and the element to TXT file

Time:10-09

For (vector{

}
How do you write the cycle in the middle of the part

CodePudding user response:

* iter is the element,
Observe_o is what only you know,,,

CodePudding user response:

reference 1st floor zjq9931 response:
* iter is the element,
Observe_o is what only you know,,,

Observe_o is my custom type
I want to write the element in TXT how

CodePudding user response:

refer to the second floor a654420293 response:
Quote: refer to 1st floor zjq9931 response:

* iter is the element,
Observe_o is what only you know,,,

Observe_o is my custom type
I want to write the element in TXT how

The text element? If not the text is based on binary way to write? Or converted into text?
Convert text, how to convert this to write you, because I don't know what is observe_o,
And then there is the file operations, this will be?
Fopen
Fwrite
Fclose
The three function is enough,

CodePudding user response:

* iter is the vector of each element inside observe_o
If observe_0 is struct contains data Data1, iter (*). The corresponding observer_o Data1. Data1
Then write each data

CodePudding user response:

The definition of the observe_o posted and have a look
  • Related