/*In C++, build a linked list of 20 nodes using the addNodefunction you created in class.
Write a function to delete the kth node of the list. k is anynumber between 1 and 19.This is what I have so far but I don’tunderstand how to delete nodes. Thanks for the help!*/
#include <iostream>
#include <iomanip>
using namespace std;
struct node {
int info;
node *ptrNextNode;
};
node* addNode(node *currentNode, int i);
void printList(node *firstNode);
int main()
{
node *currentNode = addNode(NULL, 34);
node *firstNode = currentNode;
currentNode = addNode(currentNode, 39);
currentNode = addNode(currentNode, 43);
currentNode = addNode(currentNode, 23);
currentNode = addNode(currentNode, 44);
currentNode = addNode(currentNode, 21);
currentNode = addNode(currentNode, 22);
PayPal Gateway not configured
PayPal Gateway not configured