// Get string length without strlen
// Version 1.0
// Date 16:47 08/10/2016
// By Ben a.k.a DreamVB

#include <iostream>

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

int main(int argc, char *argv[]){
	string s0 = "String length without using strlen";
	int len = 0;

	//Loop until the NULL char is found.
	while (s0[len] != '\0'){
		//INC len counter
		len++;
	}
	
	cout << "Source: " << endl << s0.c_str() << endl;
	cout << "Length : " << len << endl;

	system("pause");
	return 0;
}