2024-03-07 10:16:43 -06:00
|
|
|
//
|
|
|
|
// 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);
|
|
|
|
|
2024-03-07 18:40:11 -06:00
|
|
|
std::string printVector(std::vector<int> arr, std::vector<int> locationVector = {-1});
|
|
|
|
std::string printVector(std::vector<std::vector<int>> arr, std::vector<std::tuple<int, int>> locationVector = {{-1, -1}});
|
|
|
|
|
|
|
|
std::vector<std::vector<int>> random2DArray(int x, int y);
|
2024-03-07 10:16:43 -06:00
|
|
|
|
|
|
|
#endif //MP2_CALEBFONTENOT_CLION_2DARRAYOPERATIONS_H
|