#include <iostream>
#include <string>


std::string Encrypt(std::string, int);

int main(int argc, char *argv[])
{
	std::string original = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
	std::string expected = "XYZABCDEFGHIJKLMNOPQRSTUVW" ;

	std::string output = Encrypt(original,23) ;
	
	if ( output != expected )
	{
	    std::cout << "Output \"" << output << "\" differed from expected \""
	    	<< expected << "\"\n" ;
	}
	else
		std::cout << "Ouput matched expected.\n" ;
}

std::string Encrypt(std::string Source, int Key)
{
    std::string Crypted = Source;

    for(int Current = 0; Current < Source.length(); Current++)
        Crypted[Current] += Key;

    return Crypted;
}

