Answered You can hire a professional tutor to get the answer.

QUESTION

write a C++ program for Problem ML10. You are required to use a linked list to create a circular list with which you keep track of the last 10...

write a C++ program for Problem ML10. You are required to use a linked list to create a circular list with which you keep track of the last 10 inputs.

/* ATTACHMENT 1: */

#include <stdio.h>

#include <iostream.h>

/*

This program segment was written for CSCI 520.001 Course Assignment #2

Problem ML10: Return the MINIMUM of the last 10 input numbers.

Input: Positive integers (enter one at a time

Output: After every new input, the MINIMUM of the last 10 numbers entered will be printed

You are asked to write a C++ program for Problem ML10. You are required to use a linked list to create a circular list with which you keep track of the last 10 inputs.

*/

static const int n=10;  /* circular list size limit */

struct node {

     int num;  /* integer entered */

     node* next ; /* pointer to the next node  */

  } ;

typedef node *link;

int main()

{

  return 0;

}

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question