
-----------------------------------
copthesaint
Thu Oct 18, 2012 11:07 am

Multi-Dimensional arrays in Class
-----------------------------------
I am having difficulty making a two dimensional array in my class. This is the output to my consol screen when the program runs: 

EDIT: sorry but I cant put this character in code Tag
&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618;&#9618; 
//it repeats for the width set

These are the errors I get:

//Buffer.h
#include 
using namespace std;

class Buffer {

public:

	Buffer (); // new no size empty
	Buffer (int = 0,int = 0); // new empty
	Buffer (int = 0,int = 0, char = ' '); // new 
	Buffer (Buffer &); // copy?
	~Buffer (); // delete buffer

	void flood (char); // set all in size

	void setPoint (int, int, char); // set point

	char getPoint (int,int)const; // get point at character

	void drawBuffer (); // Draws to output
	void drawBuffer (Buffer&); // draw to another buffer
	void drawBuffer (Buffer& , int, int); // draw to another buffer at pos y,x
	void drawBuffer (Buffer&, char); // draw to another buffer with checking white space character
	void drawBuffer (Buffer&, char,int,int); //draw to another buffer at pos y,x and wwhite space character	

protected:
	
	char **bArr;
	int wSize;
	int hSize;

};

/*Creates a new empty buffer*/
Buffer::Buffer() {
	bArr = NULL;
}

/*Creates a new buffer and resizes the multi dimensional array leaving it empty*/
Buffer::Buffer(int arrHeight, int arrWidth)  {	
	if(arrWidth 