A CPP Console Sample