// How to count the items in an array
// Date 18:18 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[]){

	double data[] = { 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5,8.5,9.5 };
	int len = _countof(data);

	//Output array count.
	cout << "There are " << len << " items in the array data." << endl;

	system("pause");
	return 0;
}