I found an example of how to use vectors, but this example below uses a constraint. How do I connect the two so it stores long numbers as shown above:
Code:
#include <cstring> // memcpy
#include <vector>
#include <cstdio> // printf
int main()
{
using namespace std;
const char arr[] = "12345678902333333333323323333333345345345345345345435";
// construct a vector with 11 zero-initialized chars.
vector<char> vec(sizeof arr);
// copy 11 chars from arr into the vector
memcpy(&vec[0], arr, sizeof arr);
// prints "1234567890"
printf("%s", &vec[0]);
system("pause");
return 0;
}