Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <string>
- #include <vector>
- #include <fstream>
- #include <sstream>
- using namespace std;
- int main()
- {
- string input = "", output = "";
- ifstream read;
- read.open("input.txt");
- getline(read, input);
- read.close();
- istringstream iss(input);
- while (iss)
- {
- string temp;
- iss >> temp;
- output += temp + "*";
- }
- ofstream write;
- output.pop_back();
- output.pop_back();
- write.open("output.txt");
- write << output;
- write.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement