User profile: coder777

User info
User name:coder777
Number of posts:7894
Latest posts:

stuck in linked list basics
The reason is that you first set [code]head[/code] and [code]tail[/code] to the same thing (line 19/...

Calculate Sinx in C++
[quote]sin(35) = 0.57[/quote]That's the mathematical correct result. How would you get -0.428183 for...

Move constructor/assignment operator
[quote]the move constrcutor is not called![/quote]Yes, this is commonly known as "copy elision". Whi...

Primary-expression error
Line 9: Replace the ':' with ';'

Error on operator overload
Another solution would be:[code]nComplex operator + (const nComplex &x){ nComplex sum = *this; s...