use strings instead of char* and vectors instead of others