- C++相談室 part126 [無断転載禁止]©2ch.net
801 :デフォルトの名無しさん[]:2016/09/13(火) 17:00:07.27 ID:dUelqKgA - >>783
#include <functional> double foo(double x) { return x; } int bar(int x) { return x; } int main() { std::function<double(double)> table[2]; table[0] = foo; table[1] = bar; }
|
|