#include using namespace std; template class Node{ public: int Value; Node * Next; Node(T value) : Value(value), Next(NULL) { } }; template void PrintNode(Node *node){ while (node != NULL) { cout << node->Value << " - > "; node = node->Next; } cout << "NULL" << endl; } int main() { Node *node1 = new Node(3.14); Node *node2 = new Node(6.92); Node *node3 = new Node(9.25); node1->Next = node2; node2->Next = node3; PrintNode(node1); return 0; }