全文预览

c语言上课笔记2(Cclassnotes2)

上传者:学习一点 |  格式:pdf  |  页数:40 |  大小:2351KB

文档介绍
y attention to the size of the array\rstored, the normal case can only enter (STR array size, -1)\rcharacters\rTo use other character functions, you must introduce the\rstring, h file header\rftinclude <string. h>\rStrlen (STR) / / returns the specified length of STR\rStrcpy (STR1, STR2) / / string STR2 content is copied to the\rSTR1\rStrCmp (STR1, STR2) / / two the size of the string, the same\rreturns 0, strl>str2 returns 1 and return -1\rStrcat (STR1, STR2) STR1 and STR2 / / string string content\r1 inks and stored into the STR1\rCases:\rttinclude <stdio. h>\rttinclude <string. h>\rInt, main ().\rChar str[5]= "LDG"";\rChar des[20]= "bbbbb"”;\rStrcat (DES, STR);\rPrintf Des);

收藏

分享

举报
下载此文档