add datastruct in cpp