声明一个结构体:
typedef struct
{
char *id;
char *name;
char *password;
}member;
定义并初始化
member NoOne;
one.id = "123456";
one.name = "lili";
one.password = "456789";
传递
bool backValue = connect(&NoOne);
连接函数
bool connect(member *tmpMember)
{
连接代码+判断连接是否成功
return true or false;
}