I am getting the following error:
prog.cpp: In member function ‘void Sequence::GetSequence()’:
prog.cpp:45: error: ‘itoa’ was not declared in this scope
I have include cstdlib header file but its not working.
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <functional>
using namespace std;
template<typename T>
struct predicate :
public binary_function<T, T, bool>
{
    bool operator() (const T& l,const T &r) const
    {
          return l < r;
    }
};
class Sequence
{
    public:
    Sequence(vector<string> &v)
    { /* trimmed */ }
void GetSequence(void)
{
    string indices = "";
    char buf[16];
    for( map<int, string>::iterator
            i = m.begin(); i != m.end(); ++i )
    {
indices = indices
                  + string(itoa((i->first), buf, 10));
    }
    SortedSequence("", indices);
}
// --- trimmed ---
 
     
     
     
    