// Program to convert strings to numbers using no inbuilt functions.
// Date 18:13 11/10/2016
// By Ben a.k.a DreamVB

#include <iostream>
#include <iomanip>

using namespace std;
using std::cout;
using std::endl;
using std::cin;

int StrToInt(char *src){
	int i = 0;
	int value = 0;

	while (src[i] != '\0'){
		value = value * 10 + (src[i] - '0');
		i++;
	}
	
	return value;
}


int main(int argc, char *argv[]){

	char *s0 = "20";
	char *s1 = "60";
	//Display output.
	cout << "20+60 is : " << StrToInt(s0) + StrToInt(s1) << endl;

	system("pause");
	return 0;
}