Re: [Dev-C++] C++ Linked Lists and Add After
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: jordanburnam1990 <jor...@me...> - 2011-04-25 00:10:44
|
Now I get an infinite loop when using the compare string functions for the if statement in add_after any ideas? Sent from my iPhone On Apr 24, 2011, at 4:51 PM, Michal Molhanec <mol...@se...> wrote: > Dne 24.4.2011 20:23, Jordan Burnam napsal(a): >> if(currNode -> word == a_word) > > You cannot compare strings with ==, you'll have to use strcmp() function like it is already used inside the assign_list() function. > |