Posts by Carlos Maia • 1 point
1 post
-
0
votes3
answers5610
viewsA: Function that checks whether a vector is in ascending order
The correct code is this: #include <iostream> using namespace std; int levetor(int v[],int &n){ //função lê vetor for(int i=0;i<n;i++) cin>>v[i]; } bool verificacrescente(int…