katherina:
i need help as i have to pass this up in 2 days time...I have to do a program for a single layer perceptron learning for BOOLEAN LOGIC of an "OR GATE".

I can't seem to display my output...n i wanted to display how many times(Epoch) the perceptron trained the program until the desired output is the same with the actual output.how do i make a program to know how many times did the program is trained until the answer is correct?

This is the one that our lecturer gave us, the perceptron learning is developed using EXCEL... I have to deelop something that can output the things just like in this EXCEL program but using other languages... and i have chosen to use C++ language..

the function of cin.get() is to discard the last piece of input you've put into a certain variable. This is very usefull, because when you press 'enter' on your keyboard, the ASCII code for 'enter' is added to your input

4. You use C++ to program your program. However, you use 3 c-libraries, why aren't you using: "stdlib.h", "time.h" and "math.h" I also can't see the point in using time.h because you aren't using any of it's functions. And math.h is also unnesecary because you aren't using any complex mathmetics (sin, cos, tan functions etc.)

5. Either your shift key is stuck, or you should read this article: clicky;-)

6. Last but not least, you use a loop to define the variable 'out' a couple of times. However, your 'cout<< Out;' command is placed AFTER the for loop. Was this your intention?