Improved main-snippet.
This commit is contained in:
parent
4dd3f63cc8
commit
cdb4a28d22
|
@ -2,9 +2,16 @@
|
||||||
# name: main
|
# name: main
|
||||||
# key: main
|
# key: main
|
||||||
# --
|
# --
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
using std::string;
|
||||||
|
using std::vector;
|
||||||
|
|
||||||
int main(${1:int argc, char *argv[]})
|
int main(${1:int argc, char *argv[]})
|
||||||
{
|
{
|
||||||
${0:const vector<string> args(argv, argv + argc);}
|
${2:const vector<string> args(argv, argv + argc);}
|
||||||
|
$0
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user