Update ex5_24.cpp

增加头文件以使得编译通过。
Merge pull request #5 from wgqimut/patch-2

Update ex5_24.cpp