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?
raymondchew2007
0
Newbie Poster
Recommended Answers
Jump to Post#include <iostream> using namespace std; int main() { cout << "Hello world!" << endl; return 0; }
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, …
Jump to PostWe 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 …
All 5 Replies
alexchen
-12
Junior Poster
habbeboy
0
Newbie Poster
sfuo
111
Practically a Master Poster
jackmaverick1
-4
Junior Poster
kernel>panic
3
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.