Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. #include <vector>
  4.  
  5. struct wk {
  6. std::string server_name;
  7. std::string client_name;
  8. };
  9.  
  10. int main(int argc, char* argv[]) {
  11.  
  12. //Option 1, and create one string array per executable
  13. std::string moses[2] = {"moses_server_networked",
  14. "moses_client_networked",
  15. };
  16.  
  17. //Option 2 and create one vector of strings per executable
  18. std::vector<std::string> moses_v;
  19. moses_v.push_back("moses_server_networked");
  20. moses_v.push_back("moses_client_networked");
  21.  
  22. //Option 3. Let's assume there are three workloads.
  23. std::vector<wk> workloads(3);
  24. workloads[0].server_name = "moses_server_networked";
  25. workloads[0].client_name = "moses_client_networked";
  26.  
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement