Hmm, let's see.
Actually I wanted to implement a goody as promised here:
Issue implementing algorithm of Lempel Ziv
But I am so not in the mood

.
Let's see what you got.
What did you learn up to day?
Classes? What?
What you should learn on short notice ( I will review your code in a bit), is to communicate better. For example, don't tell us where the headers start, where the prototypes start, and so forth. Every coder should recognize these things. Even if one is slightly less seasoned. What you want to achive with comments, is to guide complete idiots like into your coding style or insights.
Try that first.
Also change first two headers. We *never* want to mix standard headers with non-standard headers!
Code:
#include <cstdlib> // itoa, rand, srand
#include <ctime>
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;