#include <iostream> using namespace std; class Frabjous { private: char fab[20]; public: Frabjous(const char * s = "C++") : fab(s) { } virtual void tell() { cout << fab; } }; int main() { return 0; }
Standard input is empty
prog.cpp: In constructor 'Frabjous::Frabjous(const char*)': prog.cpp:8:42: error: incompatible types in assignment of 'const char*' to 'char [20]' Frabjous(const char * s = "C++") : fab(s) { } ^
Standard output is empty