User profile: mik2718

User info
User name:mik2718
Number of posts:345
Latest posts:

whats wrong with my bool script?
should look like this [code] bool isPrime(int x){ int i; for (i=2; i<sqrt(x); i++){ ...

Exponential Power Function
well your code looks complicated - you only need one loop something like this [code] product = 1; ...

Piping with 2 processes in c++
not sure what you are doing but have you considered popen? You can put a pipe separated string of c...

Sorting 2D points clockwise
When working with vectors (e.g. 2D vectors) it is good to use a vector class. Writing one is useful ...

Is there anyway we can get the length of an integer
The number of binary digits is int(log_base2(decimal)) + 1 which can be calculated by int(log(deci...

This user does not accept Private Messages

User: mik2718

  • Public profile