sample cpp application