cpp chat examples