How can I convert char a[0] into int b[0] where b is a empty dynamically allocated int array
I have tried
char a[] = \"4x^0\"; int *b; b = new int[10
You need to do:
int temp2 = temp - '0';
instead.