I don't really know how to explain how it doesn't work because I don't have any compiler mistakes..
It doesn't write to the "output" file.. when I used the function without getting the argument char *a it was writing to the output file properly...
I recomend you to use strings, neither chars nor pointers. #include <string>
and then string s = "Ctor of class Brain Called";
finally void Taxi::PrintTaxi(const string& a)
Remember, you are using c++ not c.