指针与结构体
#include<stdio.h>
#include<stdlib.h>
#include <string.h>
void Lns_02();
int main() {
Lns_02();
return ;
}
typedef struct {
long long QQ;
char *pPass;
int passLen;
} Row;
typedef struct {
Row *pRow;
int rowNum;
}Array;
void Lns_02() {
Array *pArray = (Array *)malloc(sizeof(Array));
(*pArray).rowNum = ;
(*pArray).pRow = (Row *)malloc((*pArray).rowNum * sizeof(Row));
pArray->pRow[].QQ = ;
pArray->pRow[].passLen = ;
pArray->pRow[].pPass = (char *)malloc(sizeof(char) * pArray->pRow[].passLen);
strcpy(pArray->pRow[].pPass,"linchangjian");
strcpy((*(pArray->pRow + )).pPass , "linchangjian");
strcpy((*((*pArray).pRow + )).pPass , "linchangjian");
}