.emacs.d/snippets/c++-mode/main

18 lines
249 B
Plaintext
Raw Normal View History

2019-10-01 10:14:42 +02:00
# -*- mode: snippet -*-
# name: main
# key: main
# --
2019-10-14 00:42:10 +02:00
#include <string>
#include <vector>
using std::string;
using std::vector;
2019-10-01 10:14:42 +02:00
int main(${1:int argc, char *argv[]})
{
2019-10-14 00:42:10 +02:00
${2:const vector<string> args(argv, argv + argc);}
$0
2019-10-08 15:45:12 +02:00
2019-10-01 10:14:42 +02:00
return 0;
}