Changed printf statement in cpp file to cout