Created for http://www.24HourAnswers.com
The computer programming tutorial you are about to see is one in a series developed by 24 hour answers, with the idea of helping students learn in a simple, easy, and convenient format.
Today we examine lists and linked lists using our previous work with structs.
Amazon Auto Links: No products found.
This doesn’t work for c compiled with gcc, which is pretty annoying. ListItem and i are not declared.
this is wrong program pls change it
@alive4u3 Thank you for your comments.
I’d like to try and help; perhaps you can upload your code to pastebin and link to it here, and I’ll take a look and see if I can solve your problem. You could also include the compile errors you’re getting to make it a little easier.
Hi your video was really helpful thank you:)
What editor are you using?
was really helpful. thanks.
When I try to compile this on mac terminal it gives 7 errors.
guys what int main(int argc, char* argv[]) means? i only use int main()..
i am a newbie in C.
answer me guys 🙂
u are such a lıfe saver!! Its better than my lecturer’s explanatıon!
thw mana soy
nahh that keyboard sounds so good.
i dont know why but i hate the sound of your keyboard
I am coding it on xcode, it gives error “Undeclared i”
?????
Thank you!!!!!!
system.print at 4:35
This video is so good but fuck i cant understand whyyyy
Thx man, the best tutorial on lists so far !
Where do you declared the “i” for the loop?
you should use malloc in this program
I’m getting this: 27 C:Dev-Cpplinkedlists.c `ListItem’ undeclared (first use in this function)
some may use(because of declaration):
struct ListItem *i = &c;
for(; i != NULL; i = i->prev)
{ }
and also
void Link(struct ListItem *linked, struct ListItem *prev, struct ListItem *next);
What compiler do you use?
sir ami kusi bujram na /// kita korle balu kore parbo?????
this is brilliance on a level unknown to all but the rare few of humanity who come across this very video
before 10 min ,i really don’t known the linked list programs but now i confidently can do it so handful of thank u
I had trouble getting the hang of the linked lists, but thanks to you I know understand. Thanks a lot for this video. Out of curiosity, what is your IDE?
make sure you re compiling in c++ not c in visual studios
very good……………
Excellent tutorial.
I was in mess a little while compiling it in dev c++, but I just found a solution. All you have to do is: to typedef struct ListItem {komand}ListItem; and then before FOR loop, define *i like this” ListItem *i;” and in for loop command type this “for ( i = &a; i != NULL ; i = i->next ) ” that’s all, now have fun…
what’s the difference in a.data and a->data? aren’t both pointing? im confused…
It’s Visual studio..
Thank you! 🙂