This is my code:
[tag]Code:#include <iostream> #include <string> #include <cstring> #include <vector> using namespace std; void v_abs( vector <int> &x, double p[] ) { int i=0; while( p[i] < x.size () ) { if ( p[i] < 0 ) { p[i] *= -1 ; i ++; } } } int main(){ cout<<v_abs<<endl; system("pause"); return 0; } [/tag]
idk, I can't execute correctly.