你问的是什么呢,你要的是不是这样的?[CODE]#include <iostream>using namespace std;void print(double);int main(){ print(10.2); cin.get(); return 0;}void print(double x){ cout << "x= " << x << endl;}[/CODE]