functions.h 155 B

12345678910111213
  1. #include <iostream>
  2. void test_func();
  3. bool isPrimeNum(int num);
  4. template<typename T>
  5. void swap(T &a, T &b)
  6. {
  7. T temp = a;
  8. a = b;
  9. b = temp;
  10. }