ok. This is a control algorithm.First term is the Proportional part, second is the Integral part and the third is the Derivative part. delT is...
Hello everyone, Do anyone of you have an idea about PID algorithm?It is basically like this: output(i)=Kp*error(i)+Ki*delT*(summation from 1 to...
Hello Everyone, My question is about return type: say, I have this code: int sum(int x, int y){ int add=x+y; return add; } I can understand...
I have this code: #include<iostream> #include<string> using namespace std; class A{ protected: int counter; void...
I have this c++ code: #include<iostream> using namespace std; class Complex{ float real; float imaginary; public: void...
would you please extend the idea to '&' as reference and to arrays?
Thank you,okinrus.
Internet Tutorials Okinrus,I am struggling to understand what dereference operator is.Isn't it *? Then you see the online tutorial:...
What about the last line *p1=20? Doesn't it mean value1=20?
AntonK,infact all the codes are not visible there.And,I tried several times to paste this part there.I couldn't do it. In the main program after the...
Thanks a lot. I have almost completed.Now,I want to test my program in a way that the main function accumulates 10 rational numbers a/b,where a is...
AntoK,would you please tell me in a bit more details so that I can understand?(I am a novice in programming!)
Thank you .Here are my complete codes: #include<iostream> using namespace std; class Rational{ int nom; int den; public: Rational();...
I have done so.The compiler shows this error:error C2440: 'return' : cannot convert from 'class Rational *const ' to 'class Rational &' A...
I am trying to understand a class Rational,which has this public method: Rational & reduce(),which normalizes a fraction.This is what I wrote:...
Thanks a lot.
But,It doesn't take space Pls see my modified codes.The file name does not take spaces now.
I want to open a file using constructor.It will ask the name of the file.My idea is such: #include<iostream> # include<string> #include<fstream>...
Equality CuriousGene=SG.N (To(/w)o intellectuals!!)
About SG.N Hello SG.N, You talk too much.You are simply talkative.You yourself are a clown,that is why everything seems funny to you! Well,had I...
Separate names with a comma.