I have a char array with the following:
And I need to convert them to an integer array that should end up like this:Code:char initCost[] = {"0", "-1", "0"};
I have tried many different approaches that I found online but no luck yet. Any help will be greatly appreciated.Code:int initCost[] = {0, -1, 0};