User profile: Peter87

User info
User name:Peter87
Number of posts:7125
Latest posts:

c string difficulty
strcpy doesn't know about the length of the destination array so it will overwrite whatever is store...

compare 2 vectors...
If there are no duplicates you could sort the vectors before comparing them. [code]sort(A.begin(), ...

Class function performing on an operator
fracMult has return type void. It doesn't return anything. That's why it doesn't work when you try t...

class declaration
In the tutorial example there is only one constructor that match when no arguments are passed so the...

Two identical programs produce different results
The C program gives almost the correct answer. [tt]-9.9999999999988987E-05[/tt] = [tt]-0.0000999999...

This user does not accept Private Messages

User: Peter87

  • Public profile