first commit
This commit is contained in:
94
Lab7/node.cpp
Normal file
94
Lab7/node.cpp
Normal file
@@ -0,0 +1,94 @@
|
||||
//## begin module.cm preserve=no
|
||||
|
||||
// %X% %Q% %Z% %W%
|
||||
|
||||
//## end module.cm
|
||||
|
||||
|
||||
|
||||
//## begin module.cp preserve=no
|
||||
|
||||
//## end module.cp
|
||||
|
||||
|
||||
|
||||
//## Module: Node; Pseudo Package body
|
||||
|
||||
//## Subsystem: figures
|
||||
|
||||
//## Source file: H:\kurs\avC++\lab4\Node.cpp
|
||||
|
||||
|
||||
|
||||
//## begin module.additionalIncludes preserve=no
|
||||
|
||||
//## end module.additionalIncludes
|
||||
|
||||
|
||||
|
||||
//## begin module.includes preserve=yes
|
||||
|
||||
#include <string.h>
|
||||
|
||||
//## end module.includes
|
||||
|
||||
|
||||
|
||||
// Node
|
||||
|
||||
#include "Node.h"
|
||||
|
||||
//## begin module.additionalDeclarations preserve=yes
|
||||
|
||||
//## end module.additionalDeclarations
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Parameterized Class Node
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
template <class T>
|
||||
|
||||
Node<T>::Node (T _data)
|
||||
|
||||
//## begin Node::Node%938587803.hasinit preserve=no
|
||||
|
||||
//## end Node::Node%938587803.hasinit
|
||||
|
||||
//## begin Node::Node%938587803.initialization preserve=yes
|
||||
|
||||
//## end Node::Node%938587803.initialization
|
||||
|
||||
{
|
||||
|
||||
//## begin Node::Node%938587803.body preserve=yes
|
||||
|
||||
data = _data;
|
||||
|
||||
next = (Node<T>*)0;
|
||||
|
||||
//## end Node::Node%938587803.body
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
template <class T>
|
||||
|
||||
Node<T>::~Node()
|
||||
|
||||
{
|
||||
|
||||
//## begin Node::~Node%.body preserve=yes
|
||||
|
||||
//## end Node::~Node%.body
|
||||
|
||||
Reference in New Issue
Block a user