Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <map>
- #include <string>
- std::string VR (std:.string rijec, map<std::string, std::string > mapa)
- {
- std:.string rezultat;
- int i(0);
- while (s[i] != '\n' && s[i] != '\0')
- {
- if (s[i] != ' ')
- {
- std::string zamjena;
- while (s[i] != '\0' && s[i]!= ' ')
- zamjena.push_back(s[i]);
- i++;
- auto nesto (mapa.find (zamjena))
- if( nesto != mapa.end())
- rez= rez+nesto;
- }
Advertisement
Add Comment
Please, Sign In to add comment