خرید بک لینک

Vote count: 0

What am I doing wrong here that would make index = -1? When I set index to only >0, it will only retu the last element in the times array, no matter the letter entered.

char[] lastNameLetterArr = { 'a', 'e', 'j', 'p', 't' };
string[] timeSlotArr = { TIME5, TIME1, TIME2, TIME3, TIME4 };
int index;
index = lastNameLetterArr.Length - 1;
while (index > 0 && lastNameLetterCh < lastNameLetterArr[index])
    --index;
timeStr = timeSlotArr[index];

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 18 فروردين 1395 ساعت: 10:41

صفحه بندی