+ 3

¿ Como detectar palabras/frases/caracteres en c++ ? ¿ How to detect a word/char in c++ ?

ESP: Quiero detectar en un texto el simbolo $ y que imprima algo si lo detecta a travez de una lectura de usuario (cin) ENG: Print "Hello" if the text contains the $ symbol through a user input (CIN).

24th Oct 2021, 5:37 PM
Fernando Fernandez
Fernando Fernandez - avatar
3 Respuestas
0
Please interpret it in English.
24th Oct 2021, 5:44 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
0
What is the source in ? Are you looking for find_first_of ? https://www.cplusplus.com/reference/string/string/find_first_of/ Please explain more, what do you want to achieve ?
24th Oct 2021, 6:12 PM
sneeze
sneeze - avatar
0
I don't speak Spanish (I speak portuguese), but for detect a character on C++, just use " ", I guess Also, if you can, use English for talking here :)
25th Oct 2021, 12:24 AM
Katdotbrush
Katdotbrush - avatar