Search:

Type: Posts; User: DiscoStu9

Search: Search took 0.00 seconds.

  1. Thanks MK, I just read in the values looping...

    Thanks MK,

    I just read in the values looping until the number of rows/cols read in from the header. everything works and prints out correctly now! Can't thank you enough
  2. Greetings again, I got the header all sorted out,...

    Greetings again, I got the header all sorted out, and now I am handling the data. I am confused on what fscanf does, how do I read a line from the file and separate each number into a separate int,...
  3. thanks MK, youve been a great help, im going to...

    thanks MK, youve been a great help, im going to try that now...

    just curious, why did you chose to use the switch statements? why not a set of 4 instructions since we know that going in...with i<4
  4. i see, well i am not married to fread, and yes...

    i see, well i am not married to fread, and yes they are always of the same header style....
    so I will most likely do fgets 4 times, then move to freads for the data
  5. excellent idea, thank you. Is there a simple...

    excellent idea, thank you.

    Is there a simple way to read a line and have it stop after a return key? '10' i believe? so i can read lines until 4th return, then begin to fscanf
  6. Reading Picture file into 2dimensional data array?

    Greetings, I am new to the boards and am trying to read a pgm picture file into a 2 dimensional array, rows and columns, of the color of each pixel. the files look like... for a 4x20 pixel picture
    ...
  7. Replies
    14
    Views
    1,581

    haha thanks.... c amateur, sarcasm master

    haha thanks.... c amateur, sarcasm master
  8. Replies
    14
    Views
    1,581

    i'm actually planning on moving to the far east...

    i'm actually planning on moving to the far east to become a monk and have thus sold all my belongings.... so i won't be able to get that bill, but i'll pray for you, hows that?
  9. Replies
    14
    Views
    1,581

    woooooooo... I got it to compile, I basically...

    woooooooo... I got it to compile, I basically just erased everything to do with the function and typed it over, and I got it right, must have been a small typo somewhere. Thank you all very much for...
  10. Replies
    14
    Views
    1,581

    and I have placed the typedef above the prototype...

    and I have placed the typedef above the prototype as well
  11. Replies
    14
    Views
    1,581

    Yes, I've actually tried this with the prototype...

    Yes, I've actually tried this with the prototype and function being...
    void print_cell(cell sheet[][])
    void print_cell(cell sheet[9][])
    void print_cell(cell sheet[9]9])

    all these possibilities...
  12. Replies
    14
    Views
    1,581

    thanks all, that got rid of that compile error,...

    thanks all, that got rid of that compile error, and graced me with new ones....

    Error on func prototype: " array type has incomplete element type"
    when calling function: "type of formal...
  13. Replies
    14
    Views
    1,581

    Help with error in function with structure

    I have a program which essentially is a spreadsheet, which I run as a double array (rows and columns) of a structure cell. When write my function prototype it gives me errors on compile, not sure...
  14. Replies
    13
    Views
    2,438

    Thanks again that worked out, just to show you...

    Thanks again that worked out, just to show you how bogus the int made the address when you stored it (printing worked for some reason)...


    #include <stdio.h>
    int main()
    {
    char a = 'y';...
  15. Replies
    13
    Views
    2,438

    ohhhh believe me i tried to skip the...

    ohhhh believe me i tried to skip the superfluousness, couldn't get it to work, so I figured I would make the question as easy to read as possible. I think you might be on to something with the...
  16. Replies
    13
    Views
    2,438

    i do have a 64 bit computer, dual boot vista 64,...

    i do have a 64 bit computer, dual boot vista 64, and my linux is ubuntu, don't know how it handles that actually. My code is as simple as this....



    int user_add, real_add;
    char a = 'y';...
  17. Replies
    13
    Views
    2,438

    i think so. i just need an int (or double or...

    i think so. i just need an int (or double or whatever) that will hold the address of that char so i can compare it. when i do what you have there it gives me an error compiling... something about the...
  18. Replies
    13
    Views
    2,438

    Storing the Address of a char???

    My question is fairly simple... i have an array of chars from an input file and the user needs to be able to input a memory location (im using an int) and see if anything in the array is located at...
Results 1 to 18 of 18