Changed as per review
This commit is contained in:
committed by
Kristofer Koishigawa
parent
d4848df011
commit
d226f4ceaa
@ -247,7 +247,7 @@ int main(){
|
|||||||
vector<int> v{ 10, 5, 82, 69, 64, 70, 3, 42, 28, 0 };
|
vector<int> v{ 10, 5, 82, 69, 64, 70, 3, 42, 28, 0 };
|
||||||
sort(v.rbegin(), v.rend());
|
sort(v.rbegin(), v.rend());
|
||||||
|
|
||||||
cout << "Vector Contents Sorted In Ascending Order:\n";
|
cout << "Vector Contents Sorted In Descending Order:\n";
|
||||||
for(int e : v){
|
for(int e : v){
|
||||||
cout << e << " ";
|
cout << e << " ";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user