I have a .txt file in my project directory that I made and populated with data.
directory structure looks like:
/Users/asd/ClionProjects/ProjectWithTemplates/
main.cpp
cmake
twoday.txt
here is my code:
#include
#include
#include
#include
using namespace std;
/* print array prototype */
template
void printArray(const array & arr);
/* mean function prototype */
template
double meanArray(const array & arr);
/* standard deviation prototype */
template
double sDeviation(const array & arr);
int main() {
string date1;
string date2;
array day1Temps;
array day2Temps;
array testarr = {75,70,65};
/* TESTING PURPOSES */
printArray(testarr);