Announcements for B3.9HR1
I will list here any issues relating to teh assignment which arise.
cout << image[0][0];
it will actually appear on the screen as a character rather than a number. I know I said in class that altough the array contained unisgned cahrs we could treat it just as integere. The only problem is that cout tries to be clever and as the array is declared as characters converts the integer to a character. Therefore to get it to display it to the screen as an integer you need to CAST the value to integer
cout << (int)image[0][0];
Note you would only want to output the contenst of teh array like this for testing. write_image() will be used to write the iamge to the file.
Monday 3:15 - 4:15 - Lecture - LT 3
Friday 12:15 - 1:15 - Lecture - LT 1
Friday 3:15 - 4:15 - Lecture - LT 1
NOTE: You will only attend ONE of the following laboratory slots. You will be allocated which room and time to attend. The allocation will appear on the MSc Noticeboard on the 1st floor of the CEE building.
Monday 11:15 - 1:15 - Computer Lab (Timetabled lab with help available)
Tuesday 11:15 - 1:15 - Computer Lab (Timetabled lab with help available)
Home |