lundi 5 octobre 2020

C++ if condition array match case senitivity and contains

I had ran into a problem.

I want to make a program that will match multiple strings to a predefined one.

such as a document name will be CV.pdf or cv.pdf cV.pdf myCV.pdf CVFinal.pdf

if(
                  Storage[j]=="CV.pdf"

In excel i am able to write that if any string that contains cv regardless of its position and sensitivity condition becomes true but here in C++ using code blocks .

Here i will have to write all of the following conditions in C++ i believe , looking for any function that can use contains regardless of being sensitive keyword , please help

Aucun commentaire:

Enregistrer un commentaire