totally unrelated result when multiplying two integers?

  c++
   #include <iostream>
    using std::cout;
    using std::endl;
    
    int main(void) {
        std::string fx = "6x^2+6x+4";
    
        int part1 = fx[0] * fx[3];
                    cout << fx[0] << endl;
                    cout << fx[3] << endl;
                    cout << part1;
    }

So I have this string and fx[0] and fx[3] are obviously integers, when I print them to the console they print out just fine but part1(their multiplication) equals some totally unrelated number? Can anyone help?
Output

Source: Windows Questions C++

LEAVE A COMMENT