Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- #include <fstream>
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- int main() {
- vector<string> pic;
- ifstream in("smile");
- while (in) {
- string s;
- getline(in, s);
- replace(s.begin(), s.end(), '-', ' ');
- pic.push_back(s);
- }
- for (auto& e : pic)
- cout << e << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement