avukas

f-ja

May 9th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1.  
  2.  
  3.     #include <iostream>
  4.     #include <map>
  5.     #include <string>
  6.      
  7.      
  8.      
  9.     std::string VR (std:.string rijec, map<std::string, std::string > mapa)
  10.     {
  11.     std:.string rezultat;
  12.     int i(0);
  13.      
  14.     while (s[i] != '\n' && s[i] != '\0')
  15.      {
  16.      if (s[i] != ' ')
  17.      {
  18.      std::string zamjena;
  19.      while (s[i] != '\0'  && s[i]!= ' ')
  20.      zamjena.push_back(s[i]);
  21.      i++;
  22.      
  23.      
  24.      auto nesto (mapa.find (zamjena))
  25.      if( nesto != mapa.end())
  26.      rez= rez+nesto;
  27.      
  28.      }
Advertisement
Add Comment
Please, Sign In to add comment