Create a class list containing class node

Assignment Help Basic Computer Science
Reference no: EM13794794

1. Create a simple linked list program to create a class list containing class node { void *info; node *next; public: node (void *v) {info = v; next = 0; } void put_next (node *n) {next = n;} node *get_next ( ) {return next;} void *get_info ( ) {return info;} }; Be able to initially fill the list. Provide functions to insert/append nodes and remove nodes from the linked list. Be able to display the contents of the list. Write a little driver program with at least 5 values passed in (so that 5 nodes are created) as you insert/append, delete and display data, showing the programs operation. 2. Create a program that uses a derived class based on the list class you've created in the first program. This program will use a stack data type. class node { void *info; node *next; public: node (void *v) {info = v; next = 0; } void put_next (node *n) {next = n;} node *get_next ( ) {return next;} void *get_info ( ) {return info;} }; class list { node *head; int node_num; public: list ( ) { node_num = 0; head = 0;} void remove (int); void insert (void *, int); void append (void * v) {insert (v, node_num + 1); } void *find (int); void display ( ); }; Write functions to push and pop the stack. Write a driver main program which gives 5 values (5 nodes created) that will push, pop and display data stored. 

Reference no: EM13794794

Ospf messages and icmp messages are directly encapsulated

OSPF messages and ICMP messages are directly encapsulated in an IP data- gram. If we intercept an IP datagram, how can we tell whether the payload belongs to OSPF or ICMP?

Write a program that reads strings from the user

Write a program that reads strings from the user and writes them to an output file called userStrings.txt.  Stop processing when the user enters the string "DONE".

Write a little driver program with at least 5 values passed

Provide functions to insert/append nodes and remove nodes from the linked list. Be able to display the contents of the list. Write a little driver program with at least 5 valu

Describe the biggest challenge to the successful

Analyze the benefits of use-case modeling and isolate the most advantageous benefit to the firm you currently work or worked in the past and state why.Describe the biggest cha

Remote access for small offices and teleworkers

Case Study 2: Cisco's Remote Access Go to Cisco's Website and read, "How Cisco IT Provides Remote Access for Small Offices and Teleworkers", located at http://bit.ly/MkvlbA. A

Business continuity planning

Imagine that you are trying to receive funding for select planning projects. Compare and contrast the attributes of business continuity and disaster recovery plans, and sugges

Use the traditional approach

Outline the primary ways in which the traditional approach to modeling a use case differs from an object-oriented approach. Develop a scenario in which you would use the tradi

Propose a solution to the conflicts

Consider at least two (2) software products that you use or have used in the past. Provide at least two (2) examples in which ease of learning conflicted with ease of use. Pro

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd