lmt
10-29-2006, 06:15 PM
السلام عليكم ...
كيف الحال .. انا عندي مشكله في البروجكت حقي واتمنى انكم تساعدوني ..
المطلوب :implement polynomials using linked list implementation
كيف نكتب الكود لل copy constructor و assinment operator
<include <iostream
ifndef LIST#
define LIST#
;typedef int ElementType
class List
{
: public
;()List
;()List~
;()List (const List &origList
;(const List &operator = (const List &RightHandSide
;bool empty() const
;()void travers
;(void insert(ElementType item
: private
class Node
{
;ElementType data
;Node *next
};
;Node *first
;int mySize
};
#endif
كيف الحال .. انا عندي مشكله في البروجكت حقي واتمنى انكم تساعدوني ..
المطلوب :implement polynomials using linked list implementation
كيف نكتب الكود لل copy constructor و assinment operator
<include <iostream
ifndef LIST#
define LIST#
;typedef int ElementType
class List
{
: public
;()List
;()List~
;()List (const List &origList
;(const List &operator = (const List &RightHandSide
;bool empty() const
;()void travers
;(void insert(ElementType item
: private
class Node
{
;ElementType data
;Node *next
};
;Node *first
;int mySize
};
#endif
