Skip to content

Instantly share code, notes, and snippets.

@usagi
Created February 17, 2014 07:04
Show Gist options
  • Select an option

  • Save usagi/9046021 to your computer and use it in GitHub Desktop.

Select an option

Save usagi/9046021 to your computer and use it in GitHub Desktop.
#include <vector>
#include <string>
#include <iostream>
int main(const int number_of_arguments_c, const char* const* const arguments_c)
{
const std::vector<std::string> arguments_cxx(arguments_c + 1, arguments_c + number_of_arguments_c);
std::cerr << arguments_cxx.size() << '\n';
for(const auto& a : arguments_cxx)
std::cerr << a << ' ';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment