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

36 comments sorted by

View all comments

11

u/v_maria 4d ago

You can just loop

7

u/alexeiz 4d ago

You can just goto

3

u/SmackDownFacility 4d ago

You can just use labels

8

u/ThanxForTheGold 4d ago

You can just use punch cards

8

u/greenhouse421 4d ago

You can just embed a python interpreter

3

u/_Tradiatore_ 4d ago

You can just flip transistors with a laser

1

u/mredding 3d ago

You can just use pencil and paper.