add a post, c++ in xcode