本文分类:news发布日期:2024/10/3 16:11:06
相关文章
string getline s.substr(m,n)
string a"qwe" string b"rty" string cab
cout<<c<<endl; //结果是qwert string a;
cin>>a;//hello world
cout<<a //结果是hello ,world 还在缓冲区
getline(cin,a);
cout<<a; //结果是he…
建站知识
2024/9/25 17:11:58
LeetCode559. Maximum Depth of N-ary Tree——BFS
文章目录 一、题目二、题解 一、题目
Given a n-ary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
Nary-Tree input serialization is represented in their level…
建站知识
2024/10/3 16:01:51
7、Linux-防火墙和配置静态ip
一、防火墙(防火墙服务名firewalld) 防火墙配置命令:firewall-cmd
firewall-cmd --help:防火墙帮助firewall-cmd --state:查看防火墙状态firewall-cmd --zonepublic --list-ports:查看所有打开的端口firew…
建站知识
2024/9/30 20:49:57
拼多多API的未来:无限可能性和创新空间
拼多多API的未来充满了无限可能性和创新空间。随着技术的发展和市场的变化,拼多多API将继续迭代和进化,为开发者提供更加丰富的功能和更高效的工具,以推动电商行业的创新和发展。
以下是对拼多多API未来的一些展望和可能的创新方向ÿ…
建站知识
2024/9/30 16:58:29
centos文件属性
文件属性,一共十个字符: 第一个字符:代表文件类型,d:目录, l:链接文件,c:字符文件, -:普通文件 b:块设备文件 第2-4字符:文件拥有者权限,r:读&am…
建站知识
2024/9/27 14:03:25
Vue 3的Composition API和vue2的不同之处
Vue 3的Composition API是Vue.js框架的一个重要更新,它提供了一种新的组件逻辑组织和复用方式。在Vue 2中,我们通常使用Options API(data、methods、computed等)来组织组件的逻辑,但这种组织方式在处理复杂组件时可能会…
建站知识
2024/9/30 17:05:02
C++ 最短路 堆优化版的Dijkstra算法
给定一个 n 个点 m 条边的有向图,图中可能存在重边和自环,所有边权均为非负值。
请你求出 1 号点到 n 号点的最短距离,如果无法从 1 号点走到 n 号点,则输出 −1 。
输入格式 第一行包含整数 n 和 m 。
接下来 m 行每行包含三个…
建站知识
2024/9/30 16:53:05
每日学习总结20240306
每日总结
20240306
1. 断言测试判断
#include <iostream>
#include <assert.h>
#include <cassert>
#include <stdio.h>#define STR_OK "[\x1b[1;32m OK \x1b[0m]"
#define STR_FAIL "[\x1b[1;31mFAIL\x1b[0m]"…
建站知识
2024/9/30 21:38:25