Search:

Type: Posts; User: BCWarrior

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,359

    But I can read a structure from file then by the...

    But I can read a structure from file then by the help of if I can choose print it or not.
    I say again the code is working. May be the part of the code I've posted not working. But my problem is...
  2. Replies
    10
    Views
    1,359

    The code is working. But only with simple If. ...

    The code is working. But only with simple If.

    if (strcmp(t.name,mas)==0) - itsworking

    I need to use AND operator to make 2 criterias search
  3. Replies
    10
    Views
    1,359

    If operator with &&

    Hi

    Can somebody show me how to use IF operator with &&(And)

    I have a code



    void request(FILE *in)
    {char c, mas[10]; int i,k;
  4. Replies
    41
    Views
    6,305

    Can load from file function be realized such a...

    Can load from file function be realized such a way. If im not misstaken I read one structure from file to memory. Then if I want to prin it I can use something like this

    printf("\n %d ...
  5. Replies
    41
    Views
    6,305

    Or can you help me to change variables in your...

    Or can you help me to change variables in your append and load functions to mine which i used in my code? Such as item p next prev etc.
    Please
  6. Replies
    41
    Views
    6,305

    This code dose not produce any errors. It creates...

    This code dose not produce any errors. It creates list and fills is, then saves to file and try to load. I tryed to printf the content loaded from file. Works fine. But is it podssible to do such a...
  7. Replies
    41
    Views
    6,305

    btw is this single linked list? Oh

    btw is this single linked list?
    Oh
  8. Replies
    41
    Views
    6,305

    So I need to rewrite the add function to append...

    So I need to rewrite the add function to append data from user as well as from file?
    what does the list mean in your code?
  9. Replies
    41
    Views
    6,305

    According your notice i changed file mode to rb...

    According your notice i changed file mode to rb
    so now it looks like this


    in=fopen("data.txt","rb");
    do { p=(item *)new item;
    fread(p, sizeof(item), 1, in);


    I still can't...
  10. Replies
    41
    Views
    6,305

    Ive corrected the code. And remove that. This was...

    Ive corrected the code. And remove that. This was a part of one of my thoughts about function load.
  11. Replies
    41
    Views
    6,305

    It to me seems that I missed the time when...

    It to me seems that I missed the time when computers begun to do everything right without man.
    My problem Is that I have read lots of articles about lists and bin files And about methods of saving...
  12. Replies
    41
    Views
    6,305

    Bad joke %(

    Bad joke %(
  13. Replies
    41
    Views
    6,305

    This is my new version of load function. The last...

    This is my new version of load function. The last function I need to add to my project .More then one week passed And Im still moving in wrong direction.
    Can somebody help me!
    I might be stupid...
  14. Replies
    41
    Views
    6,305

    Please can somebody help me? I have only a few...

    Please can somebody help me? I have only a few days to compete my project.
  15. Replies
    41
    Views
    6,305

    having spended a couple of hours. I still have no...

    having spended a couple of hours. I still have no idea :(. I've tryed to add free memory ability. It seems to me that I work in wrong direction.



    void load(void) //still haveing problems with...
  16. Replies
    41
    Views
    6,305

    Thanx a lot! After some corrections the code...

    Thanx a lot! After some corrections the code works the way i want. Now my last problem is loading from file. Of course I don't exactly know how to realize it. But something tells me that It just the...
  17. Replies
    41
    Views
    6,305

    OK I decided to simlify the code and join save...

    OK I decided to simlify the code and join save and view functions. Of course it will be wonderful if there was no any errors. I put compiller messages near the lines. What does it want from me? %|
    ...
  18. Replies
    41
    Views
    6,305

    Ok thats the way I immagine that struct...

    Ok thats the way I immagine that



    struct item //name of the structure
    {char name[20];int prc; int col; //structure of the thread
    struct item *prev;
    struct item *next;
    };
    void...
  19. Replies
    41
    Views
    6,305

    Can you help me to make it work? I know this is...

    Can you help me to make it work? I know this is not so difficult task but its too difficult for me
  20. Replies
    41
    Views
    6,305

    I need to save and load from binary file This...

    I need to save and load from binary file
    This coda has too many errors. And btw what should i send as a parameters?
  21. Replies
    41
    Views
    6,305

    Ok I resolved practically all my problems with my...

    Ok I resolved practically all my problems with my programm. The code of Bokarinho its just what I want but I should use my code instead :( Now I need to realyze saving and loading from file. Can...
  22. Replies
    41
    Views
    6,305

    There are some errors I cant resolve. Does this...

    There are some errors I cant resolve. Does this code written for Borland C?
  23. Replies
    41
    Views
    6,305

    WIP Borland C Doubly linked list

    Hi all!

    I need to create a programm wich represents doubly linked list. It should do the following
    1. Create new list
    2. Add new structure
    3. Delete selectes dtructure
    4. Load existing list...
Results 1 to 23 of 23