Hi guys.
I'm writing a function for my program.
This function is required to return an array or at least a pointer to an array.
The array is 2 dimensional.
How do i do this in the function, and...
Type: Posts; User: Scarecrowm
Hi guys.
I'm writing a function for my program.
This function is required to return an array or at least a pointer to an array.
The array is 2 dimensional.
How do i do this in the function, and...
in your function:
int red = ((image_data[column][row]>>16)&0xff);
I've tried this, it didn't work.
I found out why the image was black, i was copying **temparray (which was empty) into it.
data is still not being returned correctly.
what should i do?
I've got similar problems.
i modify a picture array that is stored in a static int.
but when returning to main function, and attempting to display, only a black scrren is shown
int...
Good tutorial!
Makes things very much clearer.
Another question.
I'm writing some code to process images. The images are stored as a 2D array of pixels.
When i run the code, i get segmentation...
if your only guessing numbers why not just say:
do
{
scanf("%d",&guess);
if(guess != number);
printf("try again");
}while(guess != number);
Good point.
A good craftsman does blame his tools.
But i'm a bad craftsman, so IT'S ALL BECAUSE OF PUTTY!
Another point to note:
You have declared 'cote' but not initialized it.
It could have garbage in which would produce undesired results.
my question is:
Does anyone know a good tutorial on the...
I've written c code on a terminal at my workplace, and it compiles and runs.
when i get home and login the terminal remotely using Xwin32 and Putty ssh, and run the program i get a floating point...