Created
February 17, 2014 07:04
-
-
Save usagi/9046021 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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