微智科技网
您的当前位置:首页C++ 如何引用结构体数组作为函数形参

C++ 如何引用结构体数组作为函数形参

来源:微智科技网

最近使用VS2008编写程序时,遇到了如何引用结构体数组作为函数形参问题。

现将主要代码粘贴如下(结果如图所示),来达到传递结构体数组到函数中的目的

--main.cpp--/

#include "Point.h"

#include<iostream>

#include<fstream> 

using namespace std;

typedef struct      //定义结构体

{

   int num;

   float x;

   float y;

   float z;

}Posi

因篇幅问题不能全部显示,请点此查看更多更全内容