what am i doing worng. I cant get the file to go into the insert linnked list any ideas
/****************************************************************
FILE NAME: lab4.cpp
DESCRIPTION: This...
Type: Posts; User: redmondtab
what am i doing worng. I cant get the file to go into the insert linnked list any ideas
/****************************************************************
FILE NAME: lab4.cpp
DESCRIPTION: This...
;) Im getting this error can someone help me please
117 H:\lab4a.cpp invalid conversion from `void*' to `PERSON*' the orange line is where im getting the error
...
how do i do that. Im using the dev-c ++ complier
know i get the error 87 H:\lab4a.cpp invalid conversion from `void*' to `PERSON*'
STU = malloc(sizeof *STU);
so I wnat the fgets to read the who ling. THe way I have it
fgets(STU->FName,sizeof(STU->FName),stdin);[code] I;m only reading the first name and not my whol structure. SO i need to change it to ...
im very new at this. And it is a little hard to understand on my own. THe book that i have dose not help me out to much. Some times it makes it worse.
fgets(STU->FName,sizeof(STU->FName),stdin);
is says to get it but it dose not allicatit. so i should change it to
fgets(STU->FName),malloc(sizeof(STU->FName),stdin);
so that it gets it and...
STU= (struct person_t ) malloc(sizeof(lperson_t))[code] that means that I should change this line to the malloc line right
[code]assert(STU != NULL);
so what i need its
LName = (struct person_t ) malloc(sizeof(lperson_t)) so need to have this definned. and i have to have it as something as well right but that needs to be defined in the...
I know that I'm missing that part. sorry. Trying to figure out where I should do that. I know that I need a macoll statement. Just not to sure where in the progrma i need to add it. I think that...
i did put the void in. but I'm still having the same issue. Im not putting the data into the insertNode function.
so instead of if i would do
strcmp(Here->LName ,Node->LName) thatis here my if sttement was. thisis how ichanged it in the code. I still do nto see it going into the funcation. am i wrong fro...
So what you are saying is that
while ( (Here != NULL) &&(Here->LName < Node->LName) )
if (Here->LName > Node->LName i should be using strcmp to compare the two. Not to sure how to write...
Yes that is what I'm trying to do. So I need to make sure that the data is also in alphabetic order. So i enter in the data it looks at whats there and then prints it to the file in the order. Or...
i changed the code. I know that I'm still having an issues reading the last name into the lineked list. Do i need to do a funcation that inserts it or do the ordered funcation i have do that for...
Im not getting errors at this point. my biggets problem is that I can't get my InsertNode to run. OR print. I have tryed to create a print funation to put after my insert node. ANd the system did...
i need help with getting the data into the insertnode funstion. this is what i have
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#define Nlen 26
typedef struct person_t...
so i need to add it like this this is ho that it will pass the last name to the next node right.
i think I hace to define it in this funcation. But when i do it as *Next. It is gives me erroe...
I get about 30 error messages. I know that there is a differnt way to wrote this linked like. This way i only get the error that NExt is not defined any ideas
#include <assert.h>
#include...
what to know if im on the right track for this ordered linked list ias i get each record i want to insert it into the linked list in order.
#include <assert.h>
#include <stdio.h>
#include...
ok Im still lost. Im trying to use a sort linked list any ideas of why it is not working
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#define Nlen 26
typedef struct...
i can enter in the data. But the do while statment is not working. I'm still not able to put the data into the array. Any ideas. what I do is enter in the data. And the Index stays the same ever...
i should that the number that is in the array and sort it ArrayInput[Index]. so i need to take out my returns in the Linked list
I changed to code but all that i can go though it till i say no and then it shows a bunch of number and then closes right away
/************************************************************...
ok know it will read the fil. I'm know having issues. saving it to a linked list with arrays . i pulled the example online. So I know that im missing items. Help please. Or should i do the sort...