473,395 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

I dont understand why my algorithm calculation dosent work:

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.
Sep 11 '10 #1
0 972

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Merrua | last post by:
I dont understand how to do this I created a dialog based project and that is fine for most of my programming project, but one dialog box is going to generate a graph, and as far as i know from...
3
by: Sheau Wei | last post by:
This is the code the code that i try to run it as my search engine for my database. But i dont understand why i run a notice that undefind index. Can u help me ? <form method="post"...
5
by: ryann18 | last post by:
I was just wondering, my teacher assigned a project for me and told me to "create one cat in SandBox and put all the methods (for example method_1) you need for the excercises in KittyKitty and call...
19
by: so many sites so little time | last post by:
the table is head the colunm is called body <?php //show_site.php // This script retrieves blog entries from the database. // Address error handing. ini_set ('display_errors', 1);...
13
by: newlearner | last post by:
hi, Im new into Ajax and Javascript, I have a doubt... I have a External javascript. and a couple of html files and I load These through ajax request and response. The html pages contain a...
6
by: Bishop | last post by:
a += (UInt32)(url + (url << 8) + (url << 16) + (url << 24)); I'm trying to understand what the above line of code does. I understand that the url part of (url << 8) returns part of the string...
5
by: dynamo | last post by:
In the following program i dont how cin knows where day, stops and ch ,starts. The same thing for month and year. When you type the input string without spaces.Can anyone help?thanks #include...
3
by: canabatz | last post by:
Hello all!! i got a small problem ,not big :) i got this example of a link in my site that display everything correctly! http://www.mysite.com/product.php?id=200 now my problem is : if...
4
by: MrDeej | last post by:
At least not the way i would think it should Dim rst As New ADODB.Recordset Dim ws As Workspace Set ws = DBEngine.Workspaces(0) With rst ws.BeginTrans .Open "SELECT * from ",...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.