LinkList
// linklist.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; //Make a class named node whose instances will be used in LinkList //class class node { friend class linklist; private : int val; node *next; public : //Sets value of variable val to the argument passed. void setvalue( int x) { val=x; } //Returns value of variable val int getvalue() { return val; } //Sets the node type object to the argument passed void setnext(node *a) { next=a; } //Returns the address of next because "next" is a node type //pointer. node * getnext() { return next; } }; class linklist { private : int size; //Total nodes in linklist node* head; //head has address of first node of linkli