Consider and ADT list of integers. Write a function that computes the sum of the integers in the list aList. The definition of your function should be independent of the list’s implementation.
may i know how to do this type of question?
using namespace std;
cout << "Hello world!" << endl;
This is the start of a program now go throw on some ints and add them together. Once that works figure out how to use a container ( list, vector, array... ) and put the numbers in there and then add them up.
We make it a point to avoid writing code for you. If you already have code then we would be more than happy to help you with it.
It is better if you can figure out what to write (weather or not it works) and then we can and help you work off of it.