(list)+first test with appends and output

Main now uses append and cout mechanisms for a simple program!
This commit is contained in:
2021-11-20 22:50:45 +00:00
parent fc6fc4032b
commit cae91a793c

View File

@@ -46,5 +46,9 @@ std::ostream& operator<<(std::ostream& ostream, const List<T> *lst)
int main(void)
{
auto lst = append<int>(NULL, 1);
for (int i = 2; i < 10; ++i)
lst = append(lst, i);
std::cout << lst << std::endl;
return 0;
}