#include <iostream>
#include <cmath>

int main() {
    double number = 10.75;
    double intPart, fracPart;

    // 使用 modf() 函数将浮点数分解为整数部分和小数部分
    fracPart = modf(number, &intPart);

    // 输出结果
    std::cout << "Original number: " << number << std::endl;
    std::cout << "Integer part: " << intPart << std::endl;
    std::cout << "Fractional part: " << fracPart << std::endl;

    return 0;
}