please help to check pezy's assignment1~ Thx very much~

Wow so terse..I guess that's why C guys despise C++ guys.. My version used 300+ lines..