Skip to content

Instantly share code, notes, and snippets.

View OnlyZero's full-sized avatar
World Baseball Classic

OnlyZero

World Baseball Classic
View GitHub Profile
@javagg
javagg / gist:3714006
Created September 13, 2012 12:29
transform vector<string> to char* array
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
int main() {
std::vector<std::string> symbols = {"IF1209", "IF1210"};
std::vector<const char *> chars(symbols.size());
std::for_each(symbols.begin(), symbols.end(), [](std::string& s) {