I learn by seeing and assimilation of a concept. I was trying to get someone to write a code that I learn how to add, delete,search,find the minimum and list the data in a linked list. Well...
Type: Posts; User: RBCC
I learn by seeing and assimilation of a concept. I was trying to get someone to write a code that I learn how to add, delete,search,find the minimum and list the data in a linked list. Well...
thank you very much all
pLEASE Correct it. Thank you!
John
quzah:
this should be:
while(current->next != NULL)
{
if (strcmp( current->fname,head->fname))<0
{
struct *Iterate (struct name *head)
{
int count =0;
struct node *current=head;
while (current !=NULL)
{
if (strcmp( current->fname,head->fname))<0
{
return...
Something Like this:
struct *Iterate (struct name *head)
{
int count =0;
struct node *current=head;
while (current !=NULL)
{
can you show the code on how to walk thru a linked list? I am a noob very basic code please! John
Here's what I have for an array:
int main ()
{
int icounter=0;
int array[10]={12,34,2,3,90,34,56,100,6}
int min=a[0];
person * minimum (struct people *list)
{
person *min;
while (list !=NULL)
{
if (strcmp(min->fname, list->fname)<0)
{
return min;
}
}
could show me the full code?
using this:
people * minimum (struct name *people)
{
people person *min, *current;
What is 'min' as compared to these names? Are you trying to return one name, or two?
I am trying to return 2 strings (first and last of the smallest). With a return statement at the end
Or...
If i wanted a character string to come back to set equal to min then?
Bayint Naung:
What would I return?
John
I am working through C in linked lists. I have been stumped on these two things. I have a structure that resembles :
typedef struct name
{
char *first;
...
I am trying to develope a double linked list with the following structure that allows you to add, delete, move and sort using a selection sort.
This is the structure I use:
typedef struct...
Is there a book out that says how to use c to willing to live with TESTSIGNing
enabled for everything in Windows 7 and then disable it. OR TESTSIGNing on selective files? Such as NTOSKRNL.exe? ...
What is the difference in this line:
while( c<10)
{
c++;
}
And