关于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这么用是什么意思.](/uploads/image/z/11453625-9-5.jpg?t=%E5%85%B3%E4%BA%8Ec%2B%2B+typedef+char+line%5B81%5D%3B+line+text%2Csecondline%3B+getline+%28text%29%3B%E8%B0%81%E5%B8%AE%E6%88%91%E5%88%86%E6%9E%90%E4%B8%8B%E8%BF%99%E6%AE%B5%2C%E4%B8%8D%E7%9F%A5%E9%81%93typedef%E8%BF%99%E4%B9%88%E7%94%A8%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D.)
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զWo7 e>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];