diff options
| author | jdhao <jdhao@hotmail.com> | 2021-10-30 01:24:08 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-10-30 01:24:08 +0800 |
| commit | b6df22ee89a4a576942fb6297717c26c9c9ed54b (patch) | |
| tree | 7492245d098e2cceebe0863912a4db52cccdcf74 /my_snippets | |
| parent | 49482b8ea010329ab56eb29a5af79d161df0f892 (diff) | |
more cpp snippets
Diffstat (limited to 'my_snippets')
| -rw-r--r-- | my_snippets/cpp.snippets | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/my_snippets/cpp.snippets b/my_snippets/cpp.snippets index 1de4172..458006e 100644 --- a/my_snippets/cpp.snippets +++ b/my_snippets/cpp.snippets @@ -135,3 +135,24 @@ endsnippet snippet sol "solution" w auto solution = Solution(); endsnippet + +snippet for "for loop" w +for ($1; $2; $3){ + $4 +} +endsnippet + +snippet if "if condition" w +if ($1){ + $2 +} +$0 +endsnippet + +snippet ifelse "if else condition" +if ($1){ + $2 +}else{ + +} +endsnippet |
