Unhandled exception

I wrote a code and it gives an Unhandled exception error in the line
if(fullHouse==k)
in the code below:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef DECODEDBLOCK_H
#define DECODEDBLOCK_H

long long powde(long long,long long);

class decodedBlock
{
private:
	char *cinfo;
	int *iinfo;
	int fullHouse;
	long long tenBase;
	const int N;
	const int k;
public:
	decodedBlock *link;
	decodedBlock(int,int);
	bool isFull();
	void set(char);
	void CtoI();
	void ItoC();
	void baseSwitch();
	void BaseSwitch();
	long long get();
	void set(long long);
	int get(int);
};

decodedBlock::decodedBlock(int _N,int _k):N(_N),k(_k)
{
	fullHouse=0;
	tenBase=0;
	cinfo=new char[k];
	iinfo=new int[k];
}

bool decodedBlock::isFull()
{
	if(fullHouse==k)
		return true;
	return false;
}
Last edited on
Topic archived. No new replies allowed.