CSUOJ_1001

/*
 *  Title : A+B(II)
 *  Data : 2016/11/09
 *  Author : Andrew
 */

#include <iostream>
#include <iomanip>

int main() {
    double a, b;
    while (std::cin >> a >> b) {
        std::cout << std::setiosflags(std::ios::fixed)
                  << std::setprecision(4)
                  << a + b 
                  << std::endl;
    }
    return 0;
}
原文地址:https://www.cnblogs.com/andrewliang/p/6048177.html