Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- #include <vector>
- struct wk {
- std::string server_name;
- std::string client_name;
- };
- int main(int argc, char* argv[]) {
- //Option 1, and create one string array per executable
- std::string moses[2] = {"moses_server_networked",
- "moses_client_networked",
- };
- //Option 2 and create one vector of strings per executable
- std::vector<std::string> moses_v;
- moses_v.push_back("moses_server_networked");
- moses_v.push_back("moses_client_networked");
- //Option 3. Let's assume there are three workloads.
- std::vector<wk> workloads(3);
- workloads[0].server_name = "moses_server_networked";
- workloads[0].client_name = "moses_client_networked";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement