标签:style blog color os strong io ar 代码
#include <iostream>
using namespace std;
inline double square(double x)
{
return x * x;
};
int main()
{
cout << "HelloWorld" << endl;
double a, b;
double c = 13.0;
a = square(5.0); //a=25
b = square(4.5 + 7.5); //b=144
cout << a << " " << b << "\n";
cout << square(c++) << "\n"; //c=169
cout << c << "\n"; //c=14
cin.get();
return 0;
}
标签:style blog color os strong io ar 代码
原文地址:http://www.cnblogs.com/wujinsen/p/3885677.html