|
-
October 28th, 2010, 08:20 AM
#3
Re: help me in this code ..
sorry for that
the error is her (((((( secondList = first ))))
void linkedListType<Type>::splitAt(linkedListType &secondList,
const Type& item)
{
//void splitAt(List <Type> &seclist, const Type &item){
nodeType<Type> * first;
nodeType<Type> * link;
nodeType<Type> *pNode = first ;
bool found = false;
if (isEmptyList())
cout<< "The List is empty\n";
else
for (pNode = first; pNode != NULL; pNode = pNode->link)
if (item == pNode->info){
first = pNode;
secondList = first;
found = true;
}
if (found = false){cout<<"Item not found";}
}
#endif
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|