diff options
| author | jdhao <jdhao@hotmail.com> | 2021-10-30 01:24:08 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-10-30 01:26:38 +0800 |
| commit | e2efea79ba0a6d20a829faa3f24aefc6fa10a564 (patch) | |
| tree | fd44d4e22cf4230706c305f96b5d7c2b49f9f5d5 /my_snippets | |
| parent | 49482b8ea010329ab56eb29a5af79d161df0f892 (diff) | |
more cpp snippets
Diffstat (limited to 'my_snippets')
| -rw-r--r-- | my_snippets/cpp.snippets | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/my_snippets/cpp.snippets b/my_snippets/cpp.snippets index 1de4172..99c85bf 100644 --- a/my_snippets/cpp.snippets +++ b/my_snippets/cpp.snippets @@ -134,4 +134,26 @@ endsnippet snippet sol "solution" w auto solution = Solution(); +$0 +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 |
