Hello , I try to understand pointers for frequency function . I have (I think ) the same problem . I use strcmp and never find in a string array. I've tried everything ( As far as I know , of course) . I don't want use to many if statements . I use string array for store each note , I can't use char array because I store altered notes. How can i do ? I can understand the int lookup[] array of Blauelf.
I use
string semit_sharp [] = {"A","A#","B","C","C#","D","D#","E","F","F#","G","G#"};
and then
while (strcmp(note_extraction, semit_sharp[cant_sem]) != 0) // cant_sem = 0
{
cant_sem++;
}
I have a debugging screenshot , I don't understand why strcmp can't find a coincidence .https://imgur.com/a/mkQ63O7.
I dont want create a new post , I hope son help.
Thank you