i've only dabbled in c++ for like a week a long time ago, but this shouldn't be that hard to accomplish tbh.
not sure exactly what you want, but in python you could do it like this
numbers_gt_100 = []
while True:
if len(numbers_gt_100) == 10:
break
else:
try:
x = int(input())
if x > 100:
numbers_gt_100.append(x)
except ValueError:
print("Not a number")
continue
print(numbers_gt_100)
while True is an infinite loop and everything inside it is run until it meets a stopping condition, in this case if length of the list numbers_gt_100 == 10.
if it not yet 10 numbers long, then keep trying to get input from the user (else clause). user input string is converted to int and stored in x. if x > 100, then append it to numbers_gt_1000 list, else the loop is repeated. if a user gives letters as input (see except ValueError statement) it also repeats the loop again because of the continue statement
seeing that code format is not preserved on here, here's also a screenshot
View attachment 374664
hope that gives a bit of a direction. also check stackoverflow