User profile: sqrt3

User info
User name:sqrt3
History
Joined:
Number of posts:2
Latest posts:

Array with Make Heap
if the array like this: int ia[3]={1,2,3}; so,the vector like this. vector <int > val(ia,ia+sizeof...

The variable 'factorial' is being used without being initialized.
[output]factorial *= --n;[/output] the ide dont know " *=--" you can try this: [output] while(n>1) ...