Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- int main() {
- ofstream file("file.txt");
- int num = 0;
- string input;
- cout << "Write: ";
- getline(cin, input);
- file << "Before: " << input << endl;
- num = input.length();
- for(int i=0; i<num; i++) {
- system("cls");
- if(input[i]!=32) {
- input[i] += 5 * 3 / 3 + 2.5 - 3.5 + 1 * 3 + 2 / 3 - 2;
- }
- cout << input;
- }
- file << "Now: " << input;
- file.close();
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment