Home > Software engineering >  Consult CArray serialization issues
Consult CArray serialization issues

Time:11-02

Define a CArray class
CArray M_aryStudent; % % % CStudent class has a student's name string
Directly Serialize m_aryStudent. Serialize (ar) read the string according to the code, how to return a responsibility?

CodePudding user response:

What's the matter with your CStudent Serialize function of a class is implemented?

CodePudding user response:

For computer no noise, only the binary bytes; To the human brain is gibberish,

Computer memory or file content is a one-dimensional binary byte array and its corresponding binary address;
The human brain to a computer memory or file contents in the one-dimensional binary byte array and its corresponding binary address some parts as an integer, number of signed/unsigned number, floating point Numbers, complex Numbers, letters, digits, Chinese/Korean/French... Character/string, assembly instructions, functions, function parameters, heap, stack, arrays, Pointers, array pointer and pointer array, the array of arrays, pointer to pointer, two-dimensional arrays, character lattice, the coordinates of character strokes, black and white binary images and grayscale images, color images, audio, video, fingerprint information, id information...

Recommended WinHex software to check the hard disk or file or original bytes of memory content,

CodePudding user response:

Serialization is the need to use the binary data, or you can define your own storage format, read, and then back to CArray
  • Related