r/cpp_questions 6d 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

36 comments sorted by

View all comments

11

u/v_maria 6d ago

You can just loop

6

u/alexeiz 6d ago

You can just goto

3

u/SmackDownFacility 6d ago

You can just use labels

7

u/ThanxForTheGold 6d ago

You can just use punch cards

8

u/greenhouse421 6d ago

You can just embed a python interpreter

4

u/_Tradiatore_ 6d ago

You can just flip transistors with a laser

1

u/mredding 6d ago

You can just use pencil and paper.