A
A
Anton_repr2019-04-01 18:38:00
C++ / C#
Anton_repr, 2019-04-01 18:38:00

How to check every character in a string?

If the symbol is 1, then something is done, otherwise something else is done.
str.Contains - not suitable, because it checks the entire string and does 1 action

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-04-01
@Anton_repr

https://dotnetfiddle.net/jo2xpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question