How do I solve this? I'm stuck!

Write a CPP function that receives a string containing a 32-bit hexadecimal integer. The function must return the string’s integer value based on the following protype:

Function prototype: int binStrToInt32(string s);

Test: binStrToInt32(“0000111100001101”) and few more of your choice

One method would be using a loop in the function to deal with one character at a time, and you might do some math and/or some bit-wise operation depending on whether the character is '0' or '1'

Also, note that we can’t help with school assignments in the forums. That’s one of the rules for the forums.

Thank you and will do I am very new to this!