ASDV-Cpp/Assignments/MP2_CalebFontenot_clion/2DArrayOperations.h
2024-03-07 10:16:43 -06:00

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