codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <iostream> using namespace std; void a(){cout<<"a"<<endl;} void b(){cout<<"b"<<endl;} void c(){cout<<"c"<<endl;} void (*funPtrsArray[])() = {a, b, c};//ошибка "a brace-enclosed initializer is not allowed here before '{' token" //ISO C++ forbids initialization of member 'funPtrsArray' int main(){ funPtrsArray[1](); return 0; }
Private
[
?
]
Run code
Submit