using UnityEngine; public class NewBehaviourScript : MonoBehaviour { public GameObject prefab; void Update() { //位置 float x = Random.Range(-10, 10); float y = Random.Range(-10, 10); float z = Random.Range(-10, 10); Vector3 pos = new Vector3(x,y,z); /
struct val *v = (struct val *)arg;//传入的结构体指针强制转为实例化结构体*v struct val{ int num1; int num2; }; void *text3(void *arg) { struct val *v = (struct val *)arg; int num3=v—>num1: int num4=v->num2: printf("arg is v.num1:%d,v.num2:%d\n",num3,num4); /