C++: A source to demonstarte simple dynamic single dimensional array, taking example of average marks of n students