1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex6.2/main.cpp

30 lines
471 B
C++
Raw Normal View History

2020-01-06 13:28:39 +01:00
#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;
}
}