Kaktusen

Talker

Jun 21st, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.     ofstream file("file.txt");
  9.     int num = 0;
  10.     string input;
  11.  
  12.     cout << "Write: ";
  13.     getline(cin, input);
  14.  
  15.     file << "Before: " << input << endl;
  16.  
  17.     num = input.length();
  18.  
  19.     for(int i=0; i<num; i++) {
  20.         system("cls");
  21.         if(input[i]!=32) {
  22.             input[i] += 5 * 3 / 3 + 2.5 - 3.5 + 1 * 3 + 2 / 3 - 2;
  23.         }
  24.         cout << input;
  25.     }
  26.  
  27.     file << "Now: " << input;
  28.  
  29.     file.close();
  30.  
  31.     cin.get();
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment