Course Solutions Uncategorized (Solved) : Need Implement Class Time Implement Stack Single Linked List Test Class Done Main Function Q31820158 . . . .

(Solved) : Need Implement Class Time Implement Stack Single Linked List Test Class Done Main Function Q31820158 . . . .

 

Need to implement the same class, but this timeimplement the stack as a single linked list. The test of the classshould be done with the same main function as in the example.Please do not change the main function to avoidloosingpoints.

Please place head comments AND comments to eachfunction just like in the example for full credit

==========================================

#include <iostream>

#include <string>

#include <fstream>

using namespace std;

struct NodeType;

typedef NodeType * NodePtr;

struct RecType

{

long id;

string fname;

string lname;

double amount;

};

struct NodeType

{

long id;

string fname;

string lname;

double amount;

NodePtr flink;

NodePtr blink;

};

//class

class AccountList

{

private:

NodePtr head;

NodePtr cursor;

public:

AccountList ( );

void addAccountSorted (RecType rec);

void updateAccount (RecType rec);

void display(ofstream &lfstream);

};

AccountList::AccountList ( )

{

head = new NodeType;

head->id = -1;

head->fname = “”;

head->lname = “”;

head->amount=

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post