User: wmichaelv

  • Public profile

User profile: wmichaelv

User info
User name:wmichaelv
History
Joined:
Number of posts:4
Latest posts:

elements greater than the array max
Excessive operations at: [code]for(int j = 0; j <= num_elements - 1; j++)[/code] Can be trimmed down...

I want to help this code to calculate the greatest common laboratory
You mean greatest common factory or greatest common denominator? There's a recursion for gcd alread...

"Payroll" code
for (int index = 0; index <= size; index++) should be: for (int index = 0; index < size; index++) ...

Problem with array
Try the following change cin >> v; cin >> c; cin >> s; cin >> w; cin >> sc; into: v++; c++; w++; s...

This user does not accept Private Messages