From e2efea79ba0a6d20a829faa3f24aefc6fa10a564 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 30 Oct 2021 01:24:08 +0800 Subject: [PATCH] more cpp snippets --- my_snippets/cpp.snippets | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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