17 |
* Free Software Foundation, Inc., * |
* Free Software Foundation, Inc., * |
18 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 |
***************************************************************************/ |
***************************************************************************/ |
20 |
|
/* |
21 |
#include "solutionint.h" |
#include "solutionint.h" |
22 |
|
|
23 |
SolutionInt::SolutionInt(int size) |
SolutionInt::SolutionInt(int size) |
88 |
void SolutionInt::rotate90() |
void SolutionInt::rotate90() |
89 |
{ |
{ |
90 |
unsigned char temp[MAX_SIZE]; |
unsigned char temp[MAX_SIZE]; |
91 |
|
|
92 |
for (int i=0; i<m_size; i++) |
for (int i=0; i<m_size; i++) |
93 |
{ |
{ |
94 |
int x = i; |
int x = i; |
95 |
int y = m_matrix[i]; |
int y = m_matrix[i]; |
96 |
|
|
97 |
temp[y] = (m_size-1) - i; |
temp[y] = (m_size-1) - x; |
98 |
} |
} |
99 |
|
|
100 |
set( temp); |
set( temp); |
101 |
} |
} |
102 |
|
*/ |