Skip to content

Instantly share code, notes, and snippets.

@koo5
Last active November 19, 2015 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koo5/d10680aa66496ee7677a to your computer and use it in GitHub Desktop.
Save koo5/d10680aa66496ee7677a to your computer and use it in GitHub Desktop.
kook@idea ~/test> cat args.cpp
#include <iostream>
int main ( int argc, char** argv) {
for(int i=1;i<argc;i++){
std::cout << argv[i] << std::endl;}
}⏎
kook@idea ~/test> ./a.out a b a-b "fff" ~/Documents/Online\ Research\ Tools.pdf
a
b
a-b
fff
/home/kook/Documents/Online Research Tools.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment