I am trying to figure out how to extract integers into an int vector so I can compute them:
input = 40,50,29,50
*take out the delimiter and separate the numbers into an array
arr[ ] = {40 50 29 50}
arr[0]+arr[1] = 90
I would love it without std:: (aka using namespace std; easier for me to understand)
Someone had an example here but I don't if it is the same thing or how to really understand it. There was also a suggestion using tokens but I am unsure how to do this either. Anything helps thank you!