当前位置:网站首页>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
边栏推荐
- Briefly introduce chown command
- Pycharm breakpoint management: temporarily cancel some breakpoints + run directly to a line
- Here comes the chicken soup! Keep this quick guide for data analysts
- Essence and physical meaning of convolution (deep and brief understanding)
- LeetCode 241. 为运算表达式设计优先级(分治/记忆化递归/动态规划)
- Gee: find the spatial distribution and corresponding time of the "greenest" in the Yellow River Basin in 2020 [pixel by pixel analysis]
- Gee series: unit 8 time series analysis in Google Earth engine [time series]
- LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
- Gee: remote sensing image composite and mosaic
- Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
![Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]](/img/ff/59956c2323567cc614458a2bccb642.jpg)
Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]
![[opencv] image binarization](/img/7e/b56a59ffae3bf6cac9c0bb7e090b85.jpg)
[opencv] image binarization

Simple and practical accounting software, so that accounts can be checked

Gee data set: export the distribution and installed capacity of hydropower stations in the country to CSV table

Mysql基础---查询(1天学会mysql基础)

Nodejs (03) -- custom module

Fabric.js 精简JSON

el form 表单validate成功后没有执行逻辑

Fabric. JS centered element
随机推荐
The reason why sizeof (ARR) / sizeof (arr[0]) is used in the function to calculate the length of the array is incorrect
Video multiple effects production, fade in effect and border background are added at the same time
Gee: remote sensing image composite and mosaic
Simple and practical accounting software, so that accounts can be checked
Fabric. JS basic brush
指针使用详解
go实现leetcode旋转数组
JS interview collection test question 1
MySQL foundation --- query (learn MySQL foundation in 1 day)
Briefly introduce chown command
Cubemx DMA notes
Gee series: unit 8 time series analysis in Google Earth engine [time series]
函数中使用sizeof(arr) / sizeof(arr[0])求数组长度不正确的原因
从数组中找出和为目标的下标
Fabric. JS free draw rectangle
数据库批量插入数据
运维工作的“本手、妙手、俗手”
Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
Mathematical problems (number theory) trial division to judge prime numbers, decompose prime factors, and screen prime numbers
Implementation of go language for deleting duplicate items in sorting array