访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容
#include <iostream> using namespace std; struct MyPoint { double x; double y; }; MyPoint OnStart1() { MyPoint temp; temp.x = 121.2; temp.y = 99.3; return temp; } void OnDraw() { MyPoint temp; temp = OnStart1(); cout << "X: " << temp.x << endl; cout << "Y: " << temp.y << endl; } void main() { OnDraw(); system("Pause"); }