全文预览

C语言上课笔记2(Clanguageclassnotes2)

上传者:苏堤漫步 |  格式:pdf  |  页数:40 |  大小:2698KB

文档介绍
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\rlinks and stored into the STR1\rCases:.\r#include <stdio. h>\r#include <string. h>\rInt, main ()\r(\rChar str[5]= "LDG";\rChar des[20]= "bbbbb"” ;\rS trcat (DES, STR);\rP rin tf Des);

收藏

分享

举报
下载此文档