关于c++ typedef char line[81]; line text,secondline; getline (text);谁帮我分析下这段,不知道typedef这么用是什么意思.

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/14 23:40:20
关于c++ typedef char line[81]; line text,secondline; getline (text);谁帮我分析下这段,不知道typedef这么用是什么意思.
x͑N@_e 6񰔪$6Ѓ (AA.$@/ݥo!=r3͗j&I[h(XצOA;Yq"~~e)9]4Ld@DvV :w)AskMN?m_htësڷ4?RS؞=t3?[P(L{ޢ+2Ml|AưcN0&9rNu;$tƊL4%)&$?=[8wFLفBI@Z-'8զWo7e>Uq> )jz?c+;B$J*8=|P~/r&6_3

关于c++ typedef char line[81]; line text,secondline; getline (text);谁帮我分析下这段,不知道typedef这么用是什么意思.
关于c++ typedef char line[81]; line text,secondline; getline (text);
谁帮我分析下这段,不知道typedef这么用是什么意思.

关于c++ typedef char line[81]; line text,secondline; getline (text);谁帮我分析下这段,不知道typedef这么用是什么意思.
typedef用来定义类型的别名
typedef int aa; 这个aa就是int的别名,当类型用,
aa c,d;
typedef int * pint; 这样定义的pint就是int*的别名
pint a,b; a和b都是int *指针
这里typedef char line[81];就是定义了有81个元素的char数组类型line
line text; 就相当于 char text[81];