This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//the program is to find the longest cross made of ones in a matrix containing only ones and zeros. | |
//small helper class | |
class Four { | |
public: | |
Four(): up(0), bottom(0), left(0), right(0){} | |
int up; | |
int bottom; | |
int left; | |
int right; | |
}; |