49
edits
Changes
→Case B - Using the Parallel Stacks and the Parallel Watch Window
==Case B - Using the Parallel Stacks and the Parallel Watch Window==
#include <iostream> #include <thread> #include <vector> #include<omp.h> #include <chrono> #include <string> using namespace std; void print(int n, const std::string& str) {
std::string msg = std::to_string(n) + " : " + str;
std::cout << msg << std::endl;
}
int main() {
std::vector<std::string> s = {
"Hello World",
}
return 0;
}}
The main program calls the print function for the size of the string vector.