Hey guys
If I am using an ifstream to read in data, and have systematically read data on the first line, How do I skip to the next line at the end of the line?
Any ideas?
Thanks.
Asp
Type: Posts; User: aspand
Hey guys
If I am using an ifstream to read in data, and have systematically read data on the first line, How do I skip to the next line at the end of the line?
Any ideas?
Thanks.
Asp
Thanks guys..any more responses anyone?
A :)
Hi,
Does anyone know which search is more efficient, the hash table search or the Binary Search Tree search..Respond only if you're confident of your answer. If possible, please also explain....
thanks Shiro..it works..
ah..gotcha Monster..though I am still a lil fuzzy over the prototype declaration for the same..
should it be (int)(cmp*)(KEY, KEY)? aren't I just calling one function then?? or would I change it...
Hey guys,
This is what I want to do..I want to traverse my linked list (thats why I use pWalker) and check and see if the user inputted last name matches that of contacts in the linked list (thats...
would my calling statement look like this cos it causes a lot of errors.
temp = searchList(pList, &pCur, &pPre, k2, (*cmp)(KEY,KEY));
??
hi Salem,
do you wanna explain that a little bit more..please?
A :)
Hey guys,
I have a compare function which receives at different times either first name, last name and maybe even both? Initially when wrote my lab it was only for the first name..how do I modify...
how do I modify a value in a linked list..lets say I have a name and phone number..how I would modify the phone number??
Thanks
A :)
Does anyone know how to fix this lab??
I know..but doesn't getDetails return a structure anyways?? shouldn't that be fine?
need more..more..more help :D
A :)
sorry..I guess I didn't read it the last two times you mentioned it..hope you can help now
thats what the prof wants. I know the problem lies in the createList and SearchList functions esp with passing parameters..could you have a look at that? I know the structure definition is just...
cos we're supposed to used two structures..considered more efficient and good programming..
my DATA directory is not getting filled with the information I input..can somebody try it and see whats...
I agree with MethodMan..it needs a new section..how and who do we contact to pass the idea on..we could sort the code depending on subject and would serve as a great tool for others..there would have...
Hi,
I've written this function for a phone directory and it is essential that it is good programming code..but for some reason its not really working..the names are not being stored where they...
Hey guys,
I think its a great idea if we could upload our own C files which we might write for various classes etc.. to the site. Is there a place on this where we can?? If yes please do let me...
Ppl,
I am comparing two structures but C says that k>k2 and k==k2 are illegal for struct..how should I do it??
A :)
[code]
int cmp(KEY k, KEY k2)
{
int result;
if(k > k2)
Is the simple for a long integer %d??
A :)
I know what next does..I even know that it is a pointer to struct nodetag..I don't get as to how does it work? What is the logic behind how it works? In fact, what is nodetag??
There we go..I've...
hey guys,
Can someone please explain what this does?
typedef struct nodetag
{
DATA directory;
struct nodetage *next;
} NODE;
How does the 'next' bit point to the next item in the list?...
Hey DruzTito,
This is the link to a msg I posted asking help about FLUSH..pay close attention to Prelude and esp. Hammer's comments..should be helpful! I am glad the program worked just fine for you...
To have your values within a specific range use this:
rand() % ((max + 1) - min) + min
Also, you should have probably used the stdlib library..in this case I've also used the time library since I...
Hey man..
no problem..I think I fixed the problem..you had to FLUSH at the end of the loop..the revised code is here now!
Btw..you had a typo.."availible" should be spelt "available"..I fixed that...