test
- typedef struct structGrid
- {
- int index; /*成分1*/
- int iRow; /*成分2*/
- int iCol; /*成分3*/
- bool operator ==(const structGrid &c);
- } struGrid;
- inline bool structGrid::operator ==(const structGrid &c)
- {
- if((iRow == c.iRow) && (iCol == c.iCol))
- return true;
- else
- return false;
- }