Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <fstream>
- #include <iomanip>
- #include <cstring>
- //==================using section ========================
- using std::cin ;
- using std::cout ;
- using std::endl ;
- using std::ifstream ;
- using std::ofstream ;
- using std::cerr ;
- using std::setw ;
- using std::noskipws;
- const int MAX_LINE_LEN = 200;
- int main (){
- //ifstream read_f ;
- //ofstream write_f ;
- char text[ MAX_LINE_LEN] ;
- // read_f.open("text1");
- // write_f.open("text2");
- // if(!write_f.is_open() || !read_f.is_open()){
- // cerr<<"cannot open one of files";
- // exit(EXIT_FAILURE);
- //}
- while(!cin.eof()){
- for (int i = 0; i < MAX_LINE_LEN ; ++i) {
- cin>>text[i];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement