Re: help with C



like this? I dont know what you want i need hel with the inserting, is
only for last name for now but I need first name and mid ini and id
now i'm getting the first input to print but it stop
int main()
{
List list;
List temp;

while(!feof(fpA))
{
readingaemployeedata(fpA);
if(feof(fpA))
break;
temp = creatingaemployeedata();
while(temp != NULL)
{
list = inserting(list,temp);
printing(list);
}
setptrzero(list);
return 0;
}
}

List* inserting(EIS *list,EIS *temp)
{
List *prev = NULL;
List *curr = NULL;

if(list == NULL)
{
return temp;
}
else
{
curr = prev = list;
temp->next = curr;

while(curr != NULL)
{
if(strcmp(temp->lastname,curr->lastname) > ZEROI)
{
if(curr == prev)
return temp;
else
prev->next = temp;
return list;
}
else
{
prev = curr;
curr = curr->next;
}
}
prev->next = temp;
return list;
}
}

.



Relevant Pages

  • Re: can someone please help me with making this class
    ... struct and another I put the insert in. ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: Help with a list variable
    ... >I have made the following test stored proc that all it does right now ... then looping through the list and inserting the values into ... >the temp table, then selecting all the records from teh temp table. ... Prev by Date: ...
    (comp.databases.ms-sqlserver)
  • RE: Q: define values for all pages
    ... string Name = dt.Name; ... Where temp is the class created. ... > struct and use it in the myStruct.myFirstvalie, MyStruct.SecondValue, how ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Synthesis warning...
    ... //The temp_ reg is used as follows....... ... Kanchan ... Prev by Date: ...
    (comp.lang.verilog)
  • Re: New Gallery
    ... >> The new gallery is now up and running, it is available at the link below ... >> but the link is only temp, it will be moved across to the ukrcm domain ... Prev by Date: ...
    (uk.rec.cars.modifications)