Use ``string'' & ``cout'' instead of ``char *'' & ``printf''.