当前位置:网站首页>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
边栏推荐
- Global and Chinese market of pressure gauges 2022-2028: Research Report on technology, participants, trends, market size and share
- 线程池批量处理数据
- Pyechats 1.19 generate a web version of Baidu map
- Leetcode basic programming: array
- Fabric. JS round brush
- Johnson–Lindenstrauss Lemma(2)
- Leetcode 18 problem [sum of four numbers] recursive solution
- 國產全中文-自動化測試軟件Apifox
- ubuntu20.04安装mysql8
- 函数中使用sizeof(arr) / sizeof(arr[0])求数组长度不正确的原因
猜你喜欢

Fabric.js IText 上标和下标

How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure

Operator details

Ls1046nfs mount file system

Collectors. Groupingby sort

Fabric.js 将本地图像上传到画布背景

Gee: create a new feature and set corresponding attributes

2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas

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

Fabric. JS right click menu
随机推荐
Splice characters in {{}}
Essence and physical meaning of convolution (deep and brief understanding)
Fabric.js 渐变
Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization
Fabric. JS right click menu
Fabric. JS background is not affected by viewport transformation
Gee series: unit 6 building various remote sensing indexes in Google Earth engine
黑马笔记---Set系列集合
Fabric.js IText 上标和下标
LeetCode 1175. 质数排列(质数判断+组合数学)
案例分享|智慧化的西部机场
The El cascader echo only selects the questions that are not displayed
Database batch insert data
Gee series: Unit 1 Introduction to Google Earth engine
Fabric.js 右键菜单
Basic differences between Oracle and MySQL (entry level)
Here comes the chicken soup! Keep this quick guide for data analysts
Fabric.js 3个api设置画布宽高
Fabric. JS iText superscript and subscript
Principle and implementation of parallax effect