// Simple way to use auto to print out contents of arrays such as strings.
// Date 20:59 29/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[]){
	//Message to print
	char message[] = "C++ Prohgramming Is Fun";

	//Print all the letters from message using the auto keyword
	//Notice no counter counter and ch contains the letter from message.

	for (auto& ch : message){
		if (ch != NULL){
			//Skips the null char if found.
			cout << "Letter " << ch << endl;
		}
	}

	system("pause");
	return 0;
}