Relative Content

Tag Archive for c#list

Function checking if a given char* already exists in a list always returns true

My program is supposed to load data from a CSV file, where the last part of every line is the label of the given data point. Since the labels will repeat themselves, it’s more efficient to simply store a list of those labels, and the data created inside the program can store indexes to the correct labels. The list of labels is implemented as such (handling of temp == NULL will be added later):