30 lines
960 B
C
30 lines
960 B
C
|
//
|
||
|
// Created by caleb on 3/6/24.
|
||
|
//
|
||
|
|
||
|
#ifndef MP2_CALEBFONTENOT_CLION_2DARRAYOPERATIONS_H
|
||
|
#define MP2_CALEBFONTENOT_CLION_2DARRAYOPERATIONS_H
|
||
|
|
||
|
#include <vector>
|
||
|
#include <string>
|
||
|
|
||
|
int getTotal(std::vector<int> arr);
|
||
|
int getTotal(std::vector<std::vector<int>> arr);
|
||
|
|
||
|
int getAverage(std::vector<int> arr);
|
||
|
int getAverage(std::vector<std::vector<int>> arr);
|
||
|
|
||
|
int getRowTotal(std::vector<std::vector<int>> arr, int desiredRow);
|
||
|
int getColumnTotal(std::vector<std::vector<int>> arr, int desiredColumn);
|
||
|
|
||
|
int getHighestInRow(std::vector<std::vector<int>> arr, int desiredRow);
|
||
|
int getLowestInRow(std::vector<std::vector<int>> arr, int desiredRow);
|
||
|
|
||
|
int getHighestInColumn(std::vector<std::vector<int>> arr, int desiredColumn);
|
||
|
int getLowestInColumn(std::vector<std::vector<int>> arr, int desiredColumn);
|
||
|
|
||
|
std::string printVector(std::vector<int> arr);
|
||
|
std::string printVector(std::vector<std::vector<int>> arr);
|
||
|
|
||
|
#endif //MP2_CALEBFONTENOT_CLION_2DARRAYOPERATIONS_H
|