Guest User

Untitled

a guest
Jan 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <fstream>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. const int numArr = 100;
  7. char text[numArr];
  8.  
  9. ifstream file("text.txt");
  10. file.getline(text, numArr);
  11. file.close();
  12.  
  13. for (int i = 0; i < numArr; i++)
  14. cout << text[i];
  15.  
  16. system("pause");
  17. return 0;
  18. }
  19.  
  20. Один, два, три
  21.  
  22. Один, два, три ММММММММММММММММММММММММММММММММММММММММММММММММММММММММММММММММММММММДля продолжения нажмите любую клавишу...
Add Comment
Please, Sign In to add comment