Home > Software engineering >  How to define a universal form?
How to define a universal form?

Time:10-01

Template
Struct Table
{
Vector SField;
Vector MData;
};
This definition is that ok?

CodePudding user response:

Online shoop CMFCGrid

CodePudding user response:

Why don't you refer to Excel?

CodePudding user response:

The vector and templates can T cover most types of data,

CodePudding user response:

This method is too much,

So you define the data structure is problematic, especially when the great amount of data, the vector is always from the inside,

I think the best method is:
use memory mapping file + SEH exception

Namely, first, when the file is very big, you just need to map the user to use part of it, the second, every time to write, assuming that the cell has been applied for the first memory, if there is no application, the result will be a SEH exception, memory, speaking, reading and writing at this time you use SEH exception mechanism, to apply for memory, and then rerun the exception code, this is undoubtedly the most efficient; Third, the application of memory operations can be considered according to the application pages, and then the cell of a apply for a memory, the fourth, each cell to suggest establishing the index of rapid access to,

CodePudding user response:

Don't say universal, best one can be used, the
  • Related