Search:

Type: Posts; User: mad_muppet

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. thank you

    thank you
  2. trouble with arrays returning false values

    I am trying to give an array some values and print them out ..

    I initialise the elements to zero first .. after that I put values in .. then try print them out ..

    the code compiles and runs .....
  3. ah ok yes some of them are persistant .. 809 and...

    ah ok yes some of them are persistant .. 809 and 500 are the reference width and height for resizing the screen.
    512 is the number of colors in the array made up of red green and blue which ,
    50...
  4. thanks for that .. so would this make sense for...

    thanks for that .. so would this make sense for pxcolor?


    struct pxcolor{
    int r;
    int g;
    int b;
    }arraycolor[512],*prgb;
  5. part 1 of 2 questions .. should I use malloc here? 2 arrays of structs?

    I have just finished writing my new mandelbrot set program and it compiles and runs .. sometimes though it segment faults when I try and increase the iteration count maximum and the escape value. I...
  6. Replies
    2
    Views
    1,524

    bitmap file ..

    I am trying to write a bitmap file taking BMP file format - Wikipedia, the free encyclopedia as my reference .. I am trying to write the 2x2 bitmap.

    the code compiles and runs ok but when I try...
  7. Replies
    6
    Views
    2,128

    I am trying to write some code to draw the 2x2...

    I am trying to write some code to draw the 2x2 bitmap on BMP file format - Wikipedia, the free encyclopedia.

    I don't know how to fill in the array of colors .. so far as my thinking is going I...
  8. Replies
    2
    Views
    1,825

    chaining functions

    this is some code I wrote .. I have a question about it because a while back someone on this forum mentioned that this is a form of daisy chaining functions and should be avoided.


    for( y = 1;...
  9. Replies
    6
    Views
    2,128

    :p thanks for the heads up .. appreciate it .....

    :p thanks for the heads up .. appreciate it .. could have spent a lot of time and effort only to be frustrated ..
  10. Replies
    11
    Views
    12,665

    thanks all for the help .. al.

    thanks all for the help .. al.
  11. Replies
    11
    Views
    12,665

    ok I believe I am writing the file correctly .. ...

    ok I believe I am writing the file correctly ..

    however after several hours searching I have yet to find a way to print my file out to console to check it is correct .. I cannot read it using an...
  12. Replies
    11
    Views
    12,665

    thanks for the replies .. I have a solution that...

    thanks for the replies .. I have a solution that appears to do what I want so far ..



    #include<stdio.h>
    //prototyping my structure added second variable and will need more later
    struct foo{
    ...
  13. Replies
    11
    Views
    12,665

    what I have so far .. it will write out integers...

    what I have so far .. it will write out integers using the workaround p->array[c]+ 48 but Im pretty sure it will not work with floats I dunno how to do that .. I tried using fwrite but got a bunch...
  14. Replies
    11
    Views
    12,665

    write to file .. pointer to structure array

    I am trying to learn how to write from a pointer to a structure array to a file ..
    this what I have so far.

    this is a learning exercise for me later I want to write a structure holding different...
  15. Replies
    6
    Views
    2,128

    thanks for the help so far .. I want to draw...

    thanks for the help so far ..

    I want to draw huge mandelbrot set pictures ..

    currently I can draw pictures up too 12,000 x 8,000 pixels using sdl .. I want to increase that to at least 60,000...
  16. Replies
    6
    Views
    2,128

    asking for bitmap info

    hi guys .. I am a beginner programmer using c and Im looking for info on how to create a bitmap file .. draw to it .. close it ..and save it.

    any help appreciated .. Im in an info gathering phase...
  17. Replies
    3
    Views
    3,572

    thanks

    appreciate the advice .. already had a play with reducing screen size and number of iterations .. also changed to double .. its very fast now ..

    I did fix the return types as well ..

    I will...
  18. Replies
    3
    Views
    3,572

    mandelbrot set program improvements

    I wrote a mandelbrot set progam in c a while back and posted it here at cprogramming .. one of the comments I got was there were too many global variables ..

    having problems with a new install of...
  19. Replies
    6
    Views
    1,729

    thanks for the help .. very much appreciated .. ...

    thanks for the help .. very much appreciated ..

    my daughter has used my c programming book as a coloring in book and my wife has disappered it while I was at work ..
  20. Replies
    6
    Views
    1,729

    if I try #include void proof(...

    if I try


    #include <stdio.h>
    void proof( struct foo *p){

    printf("%i\n",p->a);
    }
    int main( int argc, char * argv[] ){
  21. Replies
    6
    Views
    1,729

    pointer to struct in function

    Im trying to learn how to access a structre through using a pointer passed from one function to another ..



    #include <stdio.h>
    void proof( struct foo bar *p){
    printf("%i\n",p->a);
    }
    int...
  22. Replies
    3
    Views
    1,083

    thanks for the replies .. I know I had it...

    thanks for the replies ..

    I know I had it running correctly before on linux .. it does work ok on xp ..

    the program is designed to work left high click to low right click .. not sure if thats...
  23. Replies
    3
    Views
    1,083

    color issues

    I wrote a mandelbrot set program a while back and just lately I revisited it. it compiles fine on both windows xp and debian lenny and runs on both ..

    however I only get color on xp .. black and...
  24. Replies
    7
    Views
    1,196

    ok .. test condition first ..

    thanks for that .. I think I understand where I went wrong ..

    I learn something everyday ..:D

    appreciate the help thanks ..
  25. Replies
    7
    Views
    1,196

    it does with 3

    2 is more than half 3 ..

    could be wrong ..

    Im thinking the for loop performs the divison by 2 then tests for the exit condition .. otherwise it wouldnt work on either of 3 or 4 ..
Results 1 to 25 of 54
Page 1 of 3 1 2 3