Update MP2
This commit is contained in:
29
Assignments/MP2_CalebFontenot_clion/2DArrayOperations.h
Normal file
29
Assignments/MP2_CalebFontenot_clion/2DArrayOperations.h
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// 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
|
Reference in New Issue
Block a user