aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-30 01:24:08 +0800
committerjdhao <jdhao@hotmail.com>2021-10-30 01:24:08 +0800
commitb6df22ee89a4a576942fb6297717c26c9c9ed54b (patch)
tree7492245d098e2cceebe0863912a4db52cccdcf74
parent49482b8ea010329ab56eb29a5af79d161df0f892 (diff)
more cpp snippets
-rw-r--r--my_snippets/cpp.snippets21
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