Program does not run

I am not going to fix the whole thing, but for starters you seem to need a default constructor, consider
Int() {i = 0;}


and you look to need comparison operators as well.

this is caused by trying to use sortedlist, which … because it sorts, needs to compare the class against itself, and it also needs a default ctor.

this will work just fine once you get it going:
Int x[] = {1,2,3,4};
Last edited on
Topic archived. No new replies allowed.