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...
Type: Posts; User: BCWarrior
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...
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
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;
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 ...
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
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...
btw is this single linked list?
Oh
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?
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...
Ive corrected the code. And remove that. This was a part of one of my thoughts about function load.
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...
Bad joke %(
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...
Please can somebody help me? I have only a few days to compete my project.
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...
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...
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? %|
...
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...
Can you help me to make it work? I know this is not so difficult task but its too difficult for me
I need to save and load from binary file
This coda has too many errors. And btw what should i send as a parameters?
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...
There are some errors I cant resolve. Does this code written for Borland C?
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...