How To Pass Structure Pointer To Function In Cpp