That helps. Thanks.
Type: Posts; User: TheGreekMan2000
That helps. Thanks.
Can you tell me in a few words how to do it with a linked list? What list is the better option on that?
You say if I use an arrey and if that is filled I use the char **teams ?
I want to make a small programme where I input some strings (let's say the names of football teams) and want those strings to get in alphabetical order. I want to input as many strings as I want at...
Thanks very much for your time.
Can I, also, in a circular linked self-referencial list when done the full circle, find and print in the terminal the nodes that have a part of a string? For example, I want to print the nodes that...
Can I count how many nodes I have created in a circular self-referencial list if I don't know in advance how many nodes to add?
Those are the errors the compiler pops up in the terminal.
MardikisMavraganis.c:66:44: error: invalid type argument of ‘->’ (have ‘date {aka struct <anonymous>}’)
...
Just fixed that immediately after your reply. But I have problem with the -> in the code. The compiler says that there are errors.
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>...
I have a problem with my code and I can't find a way to solve it and continue adding in it. When I compile it it says that I don't have declared the *event. I am very confused. Here is the code.
...
So what is myList? insertIntoList is a new struct? The insertIntoList(&myList,&event); is put into your previous part of code?
Also, about adding new incidents in the list(circular linked list) I must do the same as above and put it inside a for?
So,about 2), I don't have to #define it?
So to better understand what you have written:
1) buff is the large string I want to separate.
2)BUFSIZ is the size of the array where I put the string before the separation.
3) can I make the...
I have to give to the structs data with this. The data I want to pass to the circular list above is the string after the space of the following line. The data I want to give to each member is...
For printing the negatives of the array just run the array again and check if the number is negative.
I need to separate a long string into smaller peaces with a strtok() and those peaces need to be values of members of a struct. What should I do to achieve that? Inside the while should I put ifs...
Is there any chance that I can use strtok() to insert data (and as a result add new node to a struct)in a struct with many members inside that?
If the function needs a struct that references for example the two previous structs what should I do? You have just played with my curiosity. Here is an example of what I mean:
typedef...
When you declare a function in a program with structs, does it matter where the argument is placed or it does not matter?
Here is an example:
typedef struct
{
}
typedef struct
What does $> symbolize?
First of all, don't attack the other users. It doesn't help you in the longrun. The only think that happens with that is anger.
Secondly, it's not allowed in C. Where did you find it? C isn't your...
Ahhhh.
What's a data field? Also, where you refere to "records" you mean something like a voice messege or music?
The semicolons doesn't refere to the repetitions of the program but rather for the separation of the data that must be put into the incident struct.