你好
我有一个矢量:
I want to have a function that can select a segment of the vector from index "a" to index "b" such that if "a" is greater than "b", it loops back on the vector and starts from the beginning, i.e., I want the function
这样
回报
我想知道是否有办法在不使用“如果”语句的情况下,因为它与“如果”语句相当琐碎。
谢谢你提前答案