By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,022 Members | 1,372 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,022 IT Pros & Developers. It's quick & easy.

linkedlist and checking for duplicates,

P: n/a
I do not use linkedlist stdlibrary, vector

i make my own, but i have problems with one issue, and that is checking if
there are duplicates in the middle of inputing information

line 294 http://cpp.enisoc.com/pastebin/?3935

i overload cin to get class video tape data, After i enter one data
member for VideoTape class, i need it to check if that data is duplicated
in the other class linkedlist, i am not sure about how to do this though
because things like
linkedlist<VideoTape>::addNode(VideoTape(vtape.nam e));
do not work.
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Spockie" <sp*****@verizon.net> wrote in message
news:Xn*****************************@199.45.49.11. ..
I do not use linkedlist stdlibrary, vector

i make my own, but i have problems with one issue, and that is checking if
there are duplicates in the middle of inputing information

line 294 http://cpp.enisoc.com/pastebin/?3935

i overload cin to get class video tape data, After i enter one data
member for VideoTape class, i need it to check if that data is duplicated
in the other class linkedlist, i am not sure about how to do this though
because things like
linkedlist<VideoTape>::addNode(VideoTape(vtape.nam e));
do not work.


The linked list class is very badly written. What you want to do cannot be
done with the current linked list class (that's how bad it is). I think you
have two choices, write a better version, or use the standard list class. I
know which I would choose.

john
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.