标签: c++
if (key[0] >= 'a' && key[0] <= 'z') { char x = plainteks[0]; y = key[0] - 97; x = x += y; cout << "test" << int(x); }
我用key[0] = r和plainteks[0] = t进行了尝试。所以我期望输出将是133的整数,但是为什么却显示-123呢?
key[0] = r
plainteks[0] = t
133
-123