cppmult.cpp 403 字节
Newer Older
J
Jim Anderson 已提交
1 2
#include <iostream>
#include <iomanip>
3
#include "cppmult.hpp"
4 5


6
float cppmult(int int_param, float float_param) {
7
    float return_value = int_param * float_param;
J
Jim Anderson 已提交
8
    std::cout << std::setprecision(1) << std::fixed
9
	          << "    In cppmul: int " << int_param
J
Jim Anderson 已提交
10 11 12 13
	          << " float " <<  float_param
	          << " returning  " << return_value
	          << std::endl;
    return return_value;
14 15
}