当前位置:网站首页>Determine whether there is an element in the string type
Determine whether there is an element in the string type
2022-07-02 05:19:00 【[email protected]】
.find() function
Exist returns the first character subscript of the searched string in the string
There is no return -1
#include<bits/stdc++.h>
using namespace std;
int main()
{
string a="caababc";
string b="abc";
int c=a.find(b);
cout<<c<<endl;
return 0;
}版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202151846408129.html
边栏推荐
- Principle and implementation of parallax effect
- LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
- Fabric. JS round brush
- 函数栈帧的创建和销毁
- Fabric. JS right click menu
- How to make an RPM file
- 延时队列两种实现方式
- Basic differences between Oracle and MySQL (entry level)
- Fabric.js 更换图片的3种方法(包括更换分组内的图片,以及存在缓存的情况)
- 国产全中文-自动化测试软件Apifox
猜你喜欢

Fabric.js 居中元素
![Gee series: unit 8 time series analysis in Google Earth engine [time series]](/img/a6/648ff959af93c22dc8605215a90535.jpg)
Gee series: unit 8 time series analysis in Google Earth engine [time series]

paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
![[opencv] image binarization](/img/7e/b56a59ffae3bf6cac9c0bb7e090b85.jpg)
[opencv] image binarization

黑馬筆記---Set系列集合

Gee series: unit 6 building various remote sensing indexes in Google Earth engine

指针使用详解

6. Network - Foundation

Black Horse Notes - - set Series Collection

Gee series: Unit 4 data import and export in Google Earth engine
随机推荐
Differential identities (help find mean, variance, and other moments)
About PROFIBUS: communication backbone network of production plant
在{{}}中拼接字符
el form 表单validate成功后没有执行逻辑
There are duplicate elements in leetcode. Go implementation
Go implements leetcode rotation array
Fabric.js 将本地图像上传到画布背景
Gee series: Unit 2 explore datasets
Collectors.groupingBy 排序
Global and Chinese markets for marine selective catalytic reduction systems 2022-2028: Research Report on technology, participants, trends, market size and share
运维工作的“本手、妙手、俗手”
6.网络-基础
Gee data set: export the distribution and installed capacity of hydropower stations in the country to CSV table
Implementation of leetcode two number addition go
Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster
Gee: remote sensing image composite and mosaic
Ansible installation and use
7.1模拟赛总结
Draw a wave chart_ Digital IC
Cubemx DMA notes