My new code is below.
[cpp]#include <iostream>
#include <vector>
using namespace std;
class Blocks
{
typedef vector<unsigned short> cvectype;
vector<cvectype> vec;
class block_pos
{
public:
unsigned short row;
unsigned short column;
block_pos(unsigned short r, unsigned short c):row(r ...
Search found 6 matches
- Sun Feb 22, 2004 3:53 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108986
- Sun Feb 22, 2004 3:51 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108986
- Sat Feb 21, 2004 6:16 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108986
101 Compile Error.
I use gcc 3.2.2, and compiled it successfully.
[cpp]#include <iostream>
#include <vector>
using namespace std;
class Blocks
{
typedef vector<short> cvectype;
vector<cvectype> vec;
class block_pos
{
public:
short row;
short column;
block_pos(short r, short c):row(r), column(c ...
[cpp]#include <iostream>
#include <vector>
using namespace std;
class Blocks
{
typedef vector<short> cvectype;
vector<cvectype> vec;
class block_pos
{
public:
short row;
short column;
block_pos(short r, short c):row(r), column(c ...
- Sun Feb 15, 2004 5:30 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 318350
- Sun Feb 15, 2004 4:48 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 318350
- Sat Feb 14, 2004 4:29 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 318350