cpp/c example