花费 39 ms
C语言截取从某位置开始指定长度子字符串方法

c语言标准库没有截取部分字符串的函数,为啥?因为用现有函数strncpy,很容易做到! 输出结果为 123 看到了吗,strcpy函数中的参数是字符串数组的名字,而数组名本质上是指针 ...

Fri Apr 05 14:49:00 CST 2019 0 6395
C++ std::list 基本用法

#include <iostream> #include <string> #include <list> using namespace std; // ...

Sun Dec 15 23:14:00 CST 2019 0 2494
C++ std::array 基本用法

#include <iostream> #include <string> #include <array> using namespace std; / ...

Sun Dec 15 18:04:00 CST 2019 0 1758
C++ std::vector 基本用法

#include <iostream> #include <vector> using namespace std; int main() { // 初始化的 ...

Thu Dec 12 06:30:00 CST 2019 0 1508
C++ 标准库 std::find 查找

参见:https://en.cppreference.com/w/cpp/algorithm/find 查找指定字符/数字等。 #include <iostream> #i ...

Thu Sep 19 07:00:00 CST 2019 0 1861
二叉树遍历-c实现

这里主要是三种遍历,先序(preorder,NLR),中序(Inorder,LNR),后序(Postorder,LRN) N:node,L:left,R:right 基本排序:先序(NLR,节点, ...

Sat Apr 06 04:59:00 CST 2019 0 2484
用platformio编写arduino程序

哈哈,今天浏览arduino.cc官网,找到一个好东东,以后,在ubuntu下用终端编程在也不发愁了。 platformio.org是一个物联网全能的IDE,甚至还贴心的提供了在命令行下编程的版本: ...

Wed Aug 31 06:00:00 CST 2016 1 5981
C++ std::stack 基本用法

#include <iostream> #include <string> #include <stack> // https://zh.cpprefere ...

Mon Dec 23 00:19:00 CST 2019 0 1274

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM