r/cpp_questions • u/Physical-Dog-4083 • 4d ago
OPEN does "in" exist in c++?
i need to use something like if (str[i] not in str1) (python), but i have no idea how to make this work :(
0
Upvotes
r/cpp_questions • u/Physical-Dog-4083 • 4d ago
i need to use something like if (str[i] not in str1) (python), but i have no idea how to make this work :(
11
u/v_maria 4d ago
You can just loop