I need a little help to store two strings into a vector and reversing the order of each string. i.e.

```
123456789 needs to be 987654321
12345 needs to be 000054321
```

reason for that is I need to add those two numbers together.

Featured Replies

- 1
> Read long integers as strings and store the digits of the number in the vector in reverse order. Then straight C++ won't be enough. The 32-bit limit on `long` and even 64-bit limit on `long long` may not be sufficient to store the final value. You need something like … Read More

This topic has been dead for over six months. Start a new discussion instead.

Recommended Topics