如何计算uilabel里面文字的行数
1个回答
2016-01-11
展开全部
for (int i = 0; i < (width >> 1) + 1; ++i)
{
// Find position of minimum element
int min = i;
for (int j = i + 1; j < width; ++j)
if (elements[j] < elements[min])
min = j;
// Put found minimum element in its place
unsigned char temp = elements[i];
elements[i] = elements[min];
elements[min] = temp;
}
{
// Find position of minimum element
int min = i;
for (int j = i + 1; j < width; ++j)
if (elements[j] < elements[min])
min = j;
// Put found minimum element in its place
unsigned char temp = elements[i];
elements[i] = elements[min];
elements[min] = temp;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询