BI || CrescentThief
BI || CrescentThief
CC#
Created by BI || CrescentThief on 4/22/2023 in #help
❔ Circle
thanks for the insight
5 replies
CC#
Created by BI || CrescentThief on 4/22/2023 in #help
❔ Circle
if x or y is zero then i would have to have the code rerun the generation of the x and y
5 replies
CC#
Created by BI || CrescentThief on 4/14/2023 in #help
❔ Learning binary searching
but unsure how to use less than or greater than when comparing element locations
10 replies
CC#
Created by BI || CrescentThief on 4/14/2023 in #help
❔ Learning binary searching
i want to search through a hero array with a string
10 replies
CC#
Created by BI || CrescentThief on 4/14/2023 in #help
❔ Learning binary searching
i think my bunary is setup worng but dont know how to fix it as well
10 replies
CC#
Created by BI || CrescentThief on 4/14/2023 in #help
❔ Learning binary searching
unsure how to binary search through this
10 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
ok sweet thanks
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
Kouhai how are you able to show it like that
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
oh thats really good to know never thought about it like that
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
from the end of it? so like working backwords? or is it that count--
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
i thought you would need that first part :/
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
ok
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
public static void RemoveAllHeroes(string name, out List<Hero> sub)
{
List<Hero> sub = new List<Hero>();

for (int i = 0; i < _heroes.Count; i++)
{
if (_heroes[i].Name.StartsWith(name, StringComparison.OrdinalIgnoreCase))
{
sub.Add(_heroes[i]);
_heroes.RemoveAt(i);
}
}
}
public static void RemoveAllHeroes(string name, out List<Hero> sub)
{
List<Hero> sub = new List<Hero>();

for (int i = 0; i < _heroes.Count; i++)
{
if (_heroes[i].Name.StartsWith(name, StringComparison.OrdinalIgnoreCase))
{
sub.Add(_heroes[i]);
_heroes.RemoveAt(i);
}
}
}
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
added to that list
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
i thought that involves the new list i created
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
the out parameter 'sub' must be assigned to
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
sorry new to all this
44 replies
CC#
Created by BI || CrescentThief on 4/5/2023 in #help
❔ Im learning refs and outs
44 replies