Total_times_of_words_not_recognized = how_many_times_words_detected;
Total_times_of_words_not_recognized=Total_times_of _words_not_recognized-1;
realtime_write_to_Log_successfully("Total_times_of _words_not_recognized: " + Total_times_of_words_not_recognized--);
Now how_many_times_words_detected in the construcot is set to 0;
Total_times_of_words_not_recognized is in another event i set it to ++ and i see it in listView1 each time the event raise i see Total_times_of_words_not_recognized getting up by 1. 1,2,3,4....etc.
Now what i want is in another event that Total_times_of_words_not_recognized will be equal to how_many_times_words_detected and when the the event where
Total_times_of_words_not_recognized is raised, Total_times_of_words_not_recognized will be less 1.
For example if how_many_times_words_detected is now 9. So Total_times_of_words_not_recognized will be 8.
Again they are both in diffrenet events and each event rais in another conditions.
The event where Total_times_of_words_not_recognized is now raise when a word is recognized and how_many_times_words_detected is in event that raise when every word is saying without recognize it.
What i want in the algorithm is to calculate and find how mant times i said words to the microphone and they wasnt recognized.
But since if i say a word that is recognized or not recognized raise the event of any words i say so how_many_times_words_detected allways will move up by 1 no matter what i say. Thats why in the event of recognized words i need to calculate the times i said any word minus 1. the minus 1 is the word that have been recognized.
So in fact what i should see is: how_many_times_words_detected 7,8,9,10...and Total_times_of_words_not_recognized 6,7,8,9....and so on.
For some reason the -- dosent act as ++ or maybe its the Total_times_of_words_not_recognized=Total_times_of _words_not_recognized-1;
Cuz now what i see is that Total_times_of_words_not_recognized is allways the same equal to how_many_times_words_detected and not by minus 1.
Thanks for helping.