Обновить task3-2.0.cpp
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int* first3Pos(int* a, int n, int& res_n) {
|
int* Pos(int* a, int n, int& res_n) {
|
||||||
int* tmp = new int[3];
|
int* tmp = new int[3];
|
||||||
res_n = 0;
|
res_n = 0;
|
||||||
for (int i = 0; i < 3 && i < n; ++i)
|
for (int i = 0; i < 3 && i < n; ++i)
|
||||||
@@ -62,7 +62,7 @@ int main() {
|
|||||||
for (int i = 0; i < n; ++i) cout << arr[i] << " ";
|
for (int i = 0; i < n; ++i) cout << arr[i] << " ";
|
||||||
cout << endl;
|
cout << endl;
|
||||||
|
|
||||||
searchFunc arrFunc[3] = { first3Pos, last3, min3 };
|
searchFunc arrFunc[3] = { Pos, last3, min3 };
|
||||||
|
|
||||||
int choice;
|
int choice;
|
||||||
do {
|
do {
|
||||||
|
|||||||
Reference in New Issue
Block a user