Update cal.cpp

Created a function named msg