#include <iostream> using namespace std; class IFoo { public: static const std::string txt("abc"); //geht nicht virtual int bar() = 0; }; int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp:7:33: error: expected identifier before string constant static const std::string txt("abc"); //geht nicht ^ prog.cpp:7:33: error: expected ‘,’ or ‘...’ before string constant
Standard output is empty