#include <iostream>#include <string>using namespace std; class Frabjous {private: string fab;public: Frabjous(const char * s = "C++") : fab(s) { } virtual void tell() { cout << fab; }}; int main() { char x[10]("1234567890"); return 0;}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:14:25: error: initializer-string for array of chars is too long [-fpermissive] char x[10]("1234567890"); ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!