Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 794 Bytes
#include <iostream>
#include <vector>
#include <string>
int main (int argc, char *argv[])
{
std::vector <std::string> lst = { "a", "b", "c", "d" };
for (auto x : lst){
std::cout << "[" << x << "]" << std::endl;
}
for (auto i = 1; i < argc; i++){
std::cout << "[" << argv[i] << "]" << std::endl;
}
return 0;
}
/*
Local Variables:
quickrun-option-cmd-alist: ((:command . "g++")
(:exec . ("%c -std=c++0x -o %n %s"
"%n apple orange melon"))
(:outputter .
(lambda ()
(highlight-phrase "\\(\\[\\|\\]\\)" "hi-green")))
(:remove . ("%n")))
End:
*/
Jump to Line
Something went wrong with that request. Please try again.