【正序拆解整数】2022-9-18
缘由求大Lao告知这个怎么写,我是刚学不久-编程语言-CSDN问答
void 正序拆解整数()
{//缘由https://ask.csdn.net/questions/7790232int a = 0, b = 0, c = 0, d = 0, x = 0, w1 = 1, w2 = 1; char fh = 0;std::cin >> a >> fh >> b;while (a){if (x % 2)d += b % 10 * w1, w1 *= 10;elsec += a % 10 * w2, w2 *= 10;a /= 10, b /= 10, ++x;}std::cout << c*d << std::endl;
}