Update ex9_44.cpp

Add an if comment to make sure that i will not be out of range.