Hi, I have really searched my brain for a solution but i cant seem to find one, and I really need some code to help me.
I can do something like:
a + b = r;
cout << r;
but that is easy. What I want is that when the user goes onto an addition function, they can type the integers separated by commas ie.
1,3,6,23,2
and this would do 1+3+6+23+2, and display the output. The user should be allowed to enter as many numbers as they want.
How do I do this?
Any help would be appreciated.
Thnx :-)
I can do something like:
a + b = r;
cout << r;
but that is easy. What I want is that when the user goes onto an addition function, they can type the integers separated by commas ie.
1,3,6,23,2
and this would do 1+3+6+23+2, and display the output. The user should be allowed to enter as many numbers as they want.
How do I do this?
Any help would be appreciated.
Thnx :-)
Comment