Search:

Type: Posts; User: Scarecrowm

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,326

    Functions that return arrays

    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...
  2. Replies
    24
    Views
    2,142

    in your function: int red =...

    in your function:

    int red = ((image_data[column][row]>>16)&0xff);
    I've tried this, it didn't work.
  3. Thread: my function

    by Scarecrowm
    Replies
    25
    Views
    2,553

    I found out why the image was black, i was...

    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?
  4. Thread: my function

    by Scarecrowm
    Replies
    25
    Views
    2,553

    I've got similar problems. i modify a picture...

    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...
  5. Good tutorial! Makes things very much clearer. ...

    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...
  6. if your only guessing numbers why not just say: ...

    if your only guessing numbers why not just say:


    do
    {
    scanf("%d",&guess);
    if(guess != number);
    printf("try again");
    }while(guess != number);
  7. Replies
    2
    Views
    1,819

    Good point. A good craftsman does blame his...

    Good point.

    A good craftsman does blame his tools.
    But i'm a bad craftsman, so IT'S ALL BECAUSE OF PUTTY!
  8. Replies
    6
    Views
    1,711

    Another point to note: You have declared 'cote'...

    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...
  9. Replies
    2
    Views
    1,819

    Floating point exceptions

    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...
Results 1 to 9 of 9