Baseball
#include
#include
#include
using namespace std;
class List;
class Iterator;
class Node
{
public:
/*
Constructs a node with a given data value.
@param s the data to store in this node
*/
Node(string s);
private:
string data;
Node* previous;
Node* next;
friend class List;
friend class Iterator;
};
class List
{
public:
/**
Constructs an empty list;
*/
List();
/**
Appends an element to the list.
@param s the value to append
*/
void push_back(string s);
/**
Inserts an element into the list.
@param iter the position before which to insert
@param s the value to append
*/
void insert(Iterator iter, string s);
/**
Removes an element from the list.
@param i the position to remove
@return an iterator pointing to the element after the
erased element
*/
Iterator erase(Iterator i);
/**
Gets the beginning......
View the rest of this paper...
Approximate Word Count: 956
Approximate Pages: 4 (250 words per double-spaced page)
Why should you join Frat Files?
- - It's safe, secure, and private.
- - Instant access to over 100,000 papers. New papers are added hourly.
- - Fast and reliable customer support.
Similar Essays
-
Baseball Essay
Baseball Essay. I stood yesterday afternoon engaged in the immense time
consuming game of baseball. I stood there contemplating on ... -
Baseball
Baseball. The activity that I enjoy most is Baseball, which is a competitive
game of skill played between two teams, each with nine players. ... -
Baseball Orgin Controversy
Baseball orgin controversy. Baseball ... Doubleday. In the summer of 1839, in Cooperstown,
New York, Doubleday supposedly started the game of baseball. ... -
Steroid Testing In Major League Baseball
Steroid testing in Major League Baseball. Is the new policy on steroid
testing in Major League Baseball morally justified? Taking ... -
Latinos In Baseball
Latinos in Baseball. I chose this ... in America. Latino atheletes have gain
notoriety and riches through the sport of baseball. These ...
