Add snippets for c++

This commit is contained in:
Oshgnacknak 2022-01-24 16:38:54 +01:00
parent 027fcb069c
commit d190ab06db
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956

View file

@ -0,0 +1,16 @@
snippet main
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("Hello, World!\n");
return 0;
}
endsnippet
snippet fori
for (int $1 = $2; $1 < $3; $1++) {
$0
}
endsnippet