#include ".\input.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <sstream>
using namespace std;

input::input(void)
{
}

string input::readName()
{
	char s[1000];
	scanf("%s",s);
	string strS = s;
	return strS;
}

string input::getImageFromSequence(string seqName, int seqNr)
{
	string s = seqName;
	std::stringstream strm;
	strm << seqNr;
	string nr = strm.str();//the number of the image as a string
	int PointPosition = s.find(".");
	int nr_len = nr.length();
	s.replace(PointPosition - nr_len, nr_len, nr); 

	return s;
}

input::~input(void)
{
}