Realign indentation and checkstyle of bracket (#29205)
* Realign indentation and checkstyle of bracket * Update index.md
This commit is contained in:
committed by
Kristofer Koishigawa
parent
f6b7958094
commit
30b630b5b7
@ -196,12 +196,11 @@ int main(){
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
In C++11, you can also sort with lambda function, which can be useful.
|
In C++11, you can also sort with lambda function, which can be useful.
|
||||||
```cpp11
|
```cpp
|
||||||
#include<bits/stdc++.h>
|
#include <bits/stdc++.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main()
|
int main(){
|
||||||
{
|
|
||||||
vector<int > v {3, 1, 2};
|
vector<int > v {3, 1, 2};
|
||||||
sort(v.begin(), v.end(), [] (int i, int j) -> bool {
|
sort(v.begin(), v.end(), [] (int i, int j) -> bool {
|
||||||
return i < j;
|
return i < j;
|
||||||
|
Reference in New Issue
Block a user