
-----------------------------------
deltatux
Mon Feb 16, 2009 5:18 pm

ISBN Decoding issue
-----------------------------------
Hey guys,

I'm to write an ISBN decoder. However, I think I'm getting some incrementaling issue.

http://www.imagefilez.com/out.php/i336165_decodefail1.png


int decode(FILE* fp, char* str, char* area, char* publisher, char* title){
	// determine area
	int area0;
	bool found = false;
	int digitsArea = 0;
	for (digitsArea = 1; digitsArea  area0 >> minPublisher >> maxPublisher;
		if (area0 == area) {
			if (minPublisher  area0 >> minPublisher >> maxPublisher;
		if (area0 == area) return true;
	}
	return false;
}


It looks like at the publisher section, it isn't incrementing properly, but I don't know why. Please help.

Thanks,
deltatux
