第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

c++ <string.h>中包括哪些函數(shù)?

c++ <string.h>中包括哪些函數(shù)?

iOS
藍(lán)山帝景 2019-02-15 19:11:33
c++ <string.h>中包括哪些函數(shù)?
查看完整描述

2 回答

?
寶慕林4294392

TA貢獻(xiàn)2021條經(jīng)驗(yàn) 獲得超8個(gè)贊

常用函數(shù):

strlen 求字符串長(zhǎng)度

strcmp 比較2個(gè)字符串是否一樣

strcat 字符串連接操作

strcpy 字符串拷貝操作

strstr 查詢子串

更具體的你可以查閱msdn



查看完整回答
反對(duì) 回復(fù) 2019-03-19
?
幕布斯6054654

TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超7個(gè)贊

功能里面寫了阿,還要我翻譯阿
Functions
Copying:

memcpy Copy block of memory (function)
copy內(nèi)存塊

memmove Move block of memory (function)
移動(dòng)內(nèi)存快

strcpy Copy string (function)
copy字符串

strncpy Copy characters from string (function)
從字符串里copy出字符

Concatenation:合并

strcat Concatenate strings (function)
合并字符串

strncat Append characters from string (function)
也是合并,可以指定選用前多少個(gè)字符

Comparison:比較

memcmp Compare two blocks of memory (function)
比較兩塊內(nèi)存

strcmp Compare two strings (function)
比較兩個(gè)字串

strcoll Compare two strings using locale (function)

strncmp Compare characters of two strings (function)
比較兩個(gè)字符串中的字符

strxfrm Transform string using locale (function)
采用目前區(qū)域的字符排列次序來比較字符串

Searching:

memchr Locate character in block of memory (function)
在一塊內(nèi)存中定位字符

strchr Locate first occurrence of character in string (function)
第一次出現(xiàn)的

strcspn Get span until character in string (function)
找兩串里第一個(gè)一樣的

strpbrk Locate character in string (function)
在string里找char

strrchr Locate last occurrence of character in string (function)
最后一次出現(xiàn)

strspn Get span of character set in string (function)
找字符集

strstr Locate substring (function)
子串

strtok Split string into tokens (function)
分割字符串

Other:

memset Fill block of memory (function)

strerror Get pointer to error message string (function)

strlen Get string length (function)



查看完整回答
反對(duì) 回復(fù) 2019-03-19
  • 2 回答
  • 0 關(guān)注
  • 631 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)