05 2021 档案

摘要:1、strtok函数 函数原型:char * strtok (char *str, const char * delimiters); 参数:str,待分割的字符串(c-string);delimiters,分割符字符串。该函数用来将字符串分割成一个个片段。参数str指向欲分割的字符串,参数deli 阅读全文
posted @ 2021-05-10 20:46 Mr-xxx 阅读(526) 评论(0) 推荐(0)
摘要:关于在C++中字符串的输入整理笔记 1. cin cin是C++中最常用的输入语句,当遇到空格或者回车键即停止 如: 1 #include <iostream> 2 3 #include <string> 4 5 using namespace std; 6 7 int main() 8 9 { 1 阅读全文
posted @ 2021-05-07 23:27 Mr-xxx 阅读(328) 评论(0) 推荐(0)