fork(2) download
  1. #include <iostream>
  2. #include <string>
  3. #include <cctype>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. string wyraz;
  9. int dlugosc, t, b;
  10. while(getline(cin, wyraz))
  11. {
  12. dlugosc = wyraz.length();
  13. for(t=0; t<dlugosc; t++)
  14. {
  15. if(wyraz[t]==' ')
  16. {
  17. for(b=t; b<dlugosc; b++)
  18. {
  19. wyraz[b]=wyraz[b+1];
  20. if(islower(wyraz[t]))
  21. {
  22. wyraz[t]=wyraz[t]-32;
  23. }
  24. }b--;
  25. }
  26. }cout<<wyraz<<endl;
  27. }
  28. }
  29.  
  30.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty