daily pastebin goal
90%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ex11-usten izpit
  2. #include<iostream>
  3. using namespace std;
  4. void apply(int a[m][n], int m, int n, int(*f)(int), int(*g)(int)) {
  5.     if (m<1)
  6.     {
  7.         return;
  8.     }
  9.     if (m%2==0)
  10.     {
  11.         for (int i = 0; i < n; i++)
  12.         {
  13.             a[m - 1][i] = f(a[m - 1][i]);
  14.         }
  15.     }
  16.     else
  17.     {
  18.         for (int i = 0; i < n; i++)
  19.         {
  20.             a[m - 1][i] = g(a[m - 1][i]);
  21.         }
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top