Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- int main() {
- string str;
- int sum = 0;
- ifstream fin("C:\\Users\\Start_IT\\Desktop\\in.txt");
- ofstream fout("output.txt");
- while(getline(fin, str)){
- sum = 0;
- for (int j = 1; j < str.size() && (str[j] >= 32 && str[j] <= 126); j++) {
- cout << str[j];
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement