Click here to Skip to main content
16,004,806 members

Comments by Member 3997606 (Top 3 by date)

Member 3997606 19-Mar-12 21:11pm View    
Is there a Utility that does this? John
Member 3997606 28-Nov-10 22:25pm View    
Link additems (Link *add)
{
Link *curr,*prev,*newptr;
char name[10];
char addy[10];
int maxitems;
int userpress;

newptr == malloc(sizeof(Link));
while (maxitems!=50 && userpress !=999)
{
printf("Enter in Name: (up to 10 chars)");
scanf("%c",&newptr->name);
printf("Enter in address: (Up to 10 characters:");
scanf("%c",&newptr->address);
if (newptr!=NULL)
{
prev=NULL;//No Previous item
curr=head;//current item is at the head
}
while(curr!=NULL&&newptr->name!=curr->name)
{
prev=curr;//sets the previous ptr to curr
curr =curr->next;//I get an error a value of type node cannot be assigned to type Link? What does that mean?? What is the solution?
}
if ( prev==NULL)
{
*newptr->next=head;
Member 3997606 28-Nov-10 21:25pm View    
#include "stdafx.h"
#include <source1.h>
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

Link additems (Link *add)
^
|
suppose I want to return a pointer to the structure, how do I do this?