I intend to convert a string into an array of numbers. For instance the below code works well:
// A program to demonstrate the use of stringstream 
#include <iostream> 
#include <sstream> 
using namespace std; 
int main() 
{ 
    string s = "12345"; 
    // object from the class stringstream 
    stringstream geek(s); 
    // The object has the value 12345 and stream 
    // it to the integer x 
    int x = 0; 
    geek >> x; 
    // Now the variable x holds the value 12345 
    cout << "Value of x : " << x; 
    return 0; 
}
How do I do it for a very big string. For example, string s = "77980989656B0F59468581875D719A5C5D66D0A9AB0DFDDF647414FD5F33DBCBE"
I need to store this into an array of chars, arr[32]. arr[0] should have 0x77, arr[1] should have 0x98 and so on. Considering string s is of 64 bytes. my array would be 32 bytes long.
Can someone help with this?
 
    