User profile: Peter87

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

explain the result fact (100) = 0!!
My guess is that your loop is including 0 so that it multiplies with zero and therefore the result b...

Pointers inside class
It looks fine, except that you also need to copy s.

Read character to int without crashing
You should make the if condition part of the loop condition.

abs (built-in) function is not declared in this scope
::abs is declared in <stdlib.h> (std::abs in <cstdlib>).

Read character to int without crashing
It is not scanf but what happens after it that makes the program crash. Here is an example of how y...

This user does not accept Private Messages

User: Peter87

  • Public profile