
字符串
困了就喝白茶
街边太多人与车,繁华闹市人醉夜
展开
-
掌握这些C#的字符串运用技巧就很省事了
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Runtime.InteropServices; nam原创 2021-05-13 17:10:18 · 193 阅读 · 0 评论 -
strstr() 、strcpy() 、strcat()、 strcmp() 和其他相关函数以及一些问题的出现
strstr() 函数原型: char*strstr(char*const str1, const char*const str2); 功能: 函数用于判断字符串str2是否是str1的子串。如果是,则该函数返回 str1字符串从 str2第一次出现的位置开始到 str1结尾的字符串;否则,返回NULL 例子: #include <iostream> #include <string.h> using namespace std; int main() { cha原创 2021-03-31 00:13:25 · 495 阅读 · 0 评论