Using c++ instead of c