Problem using isgraph()

Hello i am new to c++ and i am having a problem with using isgraph() from the cctype library in my program, what the program is doing is reading a file in binary mode storing values into an array, it then prints out the hex values and the graphic representation, if it cant print the graphic representation its supposed to print ".", the problem i am having is eclipse wont build due to the following error: "invalid conversion from 'int*' to 'int'" when i am using isgraph()

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
void HexDump::DoIt()
{
	int values[17];

	while(fInput.gcount() != 0){

		while(fInput.good()){
		int i = 0;
		fInput.read(values[i], 16);
		i++;
		}

		int address = 0;
		
		for(int j=0; j<17; j++){
			
			cout << setfill('0') << setw(8);
			cout << uppercase << hex << address << setw(2) ;
			cout << values[j];
			
			if( isgraph( values[j] )
				cout << nouppercase << values[j];
			else
				cout << ".";

			cout << endl;

			address += 16;
		}
	}
}


i've almost finished the program and this error just seems to be in my way, any help would be appreciated, thankyou
Last edited on
update: i have fixed up some of the obvious problems with this function and have updated it above, but i still seem to be getting the same error from eclipse
never mind, i figured it out...cant beleived i missed it *cries*
Topic archived. No new replies allowed.