Update try.cpp

Added "add" funcation