summaryrefslogtreecommitdiff
path: root/6p54.cpp
blob: f78885dafc63172c33041d91c531479ae5810efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include <vector>

/*
 *
 * 6.54
 *
 *
 */

int summing(int a, int b) {

	return a+b;
}

int main () {

	int (*fpfp)(int, int) = summing;
	int (*fpfp1)(int, int) = summing;
	int (*fpfp2)(int, int) = summing;
	int (*fpfp3)(int, int) = summing;
	std::cout << fpfp(1, 1) << std::endl;
	std::vector<int(*)(int, int)> funcvec = {fpfp, fpfp1, fpfp2, fpfp3};
	return 0;
}