rozgrzewka.txt

(0 KB) Pobierz
// rozgrzewska.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <malloc.h>

typedef unsigned char byte;

struct Image
{
	int w,k;
	byte** obraz; 
};

struct Image CreateImage(int wiersze, int kolumny)
{
	int i;
	Image obrazek;

	obrazek.w=wiersze;
	obrazek.k=kolumny;
	obrazek.obraz=(byte**)malloc(wiersze*sizeof(byte*) );
	for(i=0; i<wiersze; i++){
		obrazek.obraz[i]=(byte*)malloc(kolumny*sizeof(byte));
	}
	return obrazek;
}

void fillInImage(struct Image* image, unsigned char value)
{
	int i,j;
	for(i=0; i<image->w;i++){
		for(j=0; j<image->k;j++){
			
	
		}	
	
	}


}
int main()
{
	Image obrazek;
	obrazek=CreateImage(2,3);
	return 0;
}
Zgłoś jeśli naruszono regulamin