my code
#include <iostream>
#include <vector>
class Block {
public:
Block(int n);
int number;
Block * next;
};
class Block_world {
public:
Block_world(int n);
std::vector<Block*> world;
void print();
Block * search(int const num);
int search_pile(int const num);
void null_pre(int const ...
Search found 2 matches
- Sat Sep 08, 2012 10:03 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110361
- Sat Sep 08, 2012 8:23 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110361
101 , Code in C++, Runtime error
my code
#include <iostream>
#include <vector>
class Block {
public:
Block(int n);
int number;
Block * next;
};
class Block_world {
public:
Block_world(int n);
std::vector<Block*> world;
void print();
Block * search(int const num);
int search_pile(int const num);
void null_pre(int const ...
#include <iostream>
#include <vector>
class Block {
public:
Block(int n);
int number;
Block * next;
};
class Block_world {
public:
Block_world(int n);
std::vector<Block*> world;
void print();
Block * search(int const num);
int search_pile(int const num);
void null_pre(int const ...