Search:

Type: Posts; User: Tyrant

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    I got it, I'ill stop reading the file exactly...

    I got it, I'ill stop reading the file exactly before the end of file...
    Nice.... it works....
  2. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    Ty, i just realised that I used it right before...

    Ty, i just realised that I used it right before in the same program..., i think i need a nap...
    My teacher thougt me it that way, im sorry...
    That and fflush(stdin)....
  3. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    Quick, question, at the very end of my very last...

    Quick, question, at the very end of my very last function, i do

    w = feof(filePtr1)

    and then

    while(w != 0)

    but that dont work, what will feof return if its at the end of the file?
  4. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    I know

    I know
  5. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    I dont see wher i dont use the variable y.

    I dont see wher i dont use the variable y.
  6. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    Ty for the help...

    Ty for the help...
  7. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    Ok, my brother took the printf line and put it in...

    Ok, my brother took the printf line and put it in beetween the File and fileptr = ... lines and now it works....?????
  8. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    Im using dev-c++ 4.01 How can I tell wich...

    Im using dev-c++ 4.01

    How can I tell wich compiler im using?
  9. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    here are the errors 385...

    here are the errors

    385 c:\docume~1\andre\mydocu~1\lcc\lab4\refroid\lab4.c
    parse error before `*'

    386 c:\docume~1\andre\mydocu~1\lcc\lab4\refroid\lab4.c
    `filePtr1' undeclared (first use in...
  10. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    This is the file named refroid.txt that i read...

    This is the file named refroid.txt that i read from. Here is its content:

    0 -1 -2 -3 -4 -5 -10 -15 -20 -25 -30 -35 -40 -45 -50 -55 -60
    6 8 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95...
  11. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    ok...

    ok...
  12. Thread: Help!

    by Tyrant
    Replies
    19
    Views
    3,180

    Help!

    I was working on my program at school and was able to compile it, now i bring it home on a usb key, try compile it and i get parse error, and filePtr1 undeclared (first use in this function).

    I...
  13. Replies
    24
    Views
    2,508

    Did I do something wrong without knowing it?

    Did I do something wrong without knowing it?
  14. Replies
    10
    Views
    3,970

    I found the answer to my question in my book....:...

    I found the answer to my question in my book....:



    refroidPtr->mat_tempspeedPtr = (float **) calloc(refroidPtr->num_rows, sizeof (float *));
    for(i = 0; i < refroidPtr->num_rows; i++)
    ...
  15. Replies
    24
    Views
    2,508

    I fixed my problem thanx to appendix G of my book...

    I fixed my problem thanx to appendix G of my book and a little hard work, here is my new found code:



    #include <stdio.h>
    #include <stdlib.h>

    struct DATA
    {
    int num_columns;
  16. Replies
    24
    Views
    2,508

    im not using a data file but if youre speaking of...

    im not using a data file but if youre speaking of the refroid.txt file its this

    -4 -5 -10 -15 -20 -25 -30 -35
    15 20 25 30 35 40 45 50
    5.35 5.58 6.75 7.91 9.08 10.24 11.41 12.57
    6.29 6.55 7.86...
  17. Replies
    10
    Views
    3,970

    According to my book, calloc takes two arguments,...

    According to my book, calloc takes two arguments, the first for the amount of elements, and the second for the size of one element.

    But I dont want to wright (x*y, sizeof(int)) because that would...
  18. Replies
    24
    Views
    2,508

    Holy Bleep!

    Im definently going to try that out but i dont have the time right now...
    Im kinda of a beginner so here is what i got so far....



    #include <stdio.h>
    #include <stdlib.h>

    struct DATA
    {
  19. Replies
    10
    Views
    3,970

    int x = 5, y = 6; float matrix[x][y];

    int x = 5, y = 6;
    float matrix[x][y];
  20. Replies
    10
    Views
    3,970

    How to create a matrix in the heap....

    refroidPtr->temp_airPtr = (int *) calloc(refroidPtr->num_columns, sizeof (int));

    this is my call to calloc, it creates an array of dimensions refroidPtr->num_columns in the heap where the adresse...
  21. Replies
    24
    Views
    2,508

    refroidPtr->temp_airPtr = (int *)...

    refroidPtr->temp_airPtr = (int *) calloc(refroidPtr->num_columns, sizeof (int));

    this is my call to calloc, it creates an array of dimensions refroidPtr->num_columns in the heap where the adresse...
  22. Replies
    24
    Views
    2,508

    the rest of the members shall now be pointers to...

    the rest of the members shall now be pointers to arrays in the heap....
  23. Replies
    24
    Views
    2,508

    This is cool thanx for the help everybody...I...

    This is cool thanx for the help everybody...I think I understand now....
  24. Replies
    24
    Views
    2,508

    Whats the diffrence beetween calloc and malloc...?

    Whats the diffrence beetween calloc and malloc...?
  25. Replies
    24
    Views
    2,508

    never mind Ill read on t first....again

    never mind
    Ill read on t first....again
Results 1 to 25 of 50
Page 1 of 2 1 2