سؤال

I am wondering how can I find the range between two elements in QVector using c++. When using C# it's easier, and looks like following:

QVector aaa;
aaa.getRange(item1, item2);
هل كانت مفيدة؟

المحلول

Your question is not very clear. By googling what .NET's getRange actually does, it seems to return given count of elements from given starting position. QVector<T> QVector::mid(int pos, int length = -1); does the same with QVector.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top