1
0
Fork 0
Coursework for the Master's course Computational Data Science: Advanced Programming
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

30 lines
471 B

2 years ago
#include <iostream>
#include "Array.hh"
int main() {
Array<int> intlist(1, 99);
Array<float> strlist(2, 9.9);
intlist[4] = 50;
std::cout << "Intlist" << std::endl;
for (int i=0; i<intlist.size(); i++) {
std::cout << i << ": " << intlist[i] << std::endl;
}
strlist[0] = 9;
strlist[5] = 10;
std::cout << std::endl;
std::cout << "Strlist" << std::endl;
for (int i=0; i<strlist.size(); i++) {
std::cout << i << ": " << strlist[i] << std::endl;
}
}