fork(3) download
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <ctype.h>
  5.  
  6. int main() {
  7. std::vector<std::string> words;
  8. words.push_back("hello");
  9. words.push_back("world");
  10.  
  11. for (auto& i: words) {
  12. for (auto& j: i) {
  13. j = toupper(j);
  14. }
  15. }
  16.  
  17. for (auto& i: words) {
  18. std::cout << i << std::endl;
  19. }
  20. }
  21.  
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
HELLO
WORLD