0

How can I check if a number is in a array in cpp?

i in b[]

6th Feb 2021, 7:38 PM
Coder
Coder - avatar
2 Antworten
+ 3
Loop through the array and use an if condition to compare values, or you could use std::find() from the algorithm library
6th Feb 2021, 8:04 PM
♡Addy♡
♡Addy♡ - avatar
+ 1
This will help you, analize and then change the array to a number array: https://code.sololearn.com/cm3FpozqmoG6/?ref=app
6th Feb 2021, 8:28 PM
JaScript
JaScript - avatar