Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Not seeing my error

$
0
0
error is: extractMessage.c:9:31: error: expected ‘;’, ‘,’ or ‘)’ before ‘.’ token

my code is here:
 
#include "bmp.h"

void 
extractMessage(BMPfile picture.bmp, char* msg) {
  	unsigned char temp;
  	int width = getWidth(picture.bmp);
  	int height = getHeight(picture.bmp);
  	printf("The image has %d x %d pixels\n", width, height);

  	for (int y ; y < height ; y++) {
	 	for (int x ; x < width ; x++) {
			pixel p = getPixel(bmpfile, x, y);	/* read pixel */

			temp =p.green&0x08;
			p.green = temp<<1;
		
			putPixel(bmpfile, p, x, y);	/* write modified pixel */
	 	}
  	}
}


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>