Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void task10() {
- fstream file;
- string in_line;
- file.open("2.txt");
- int count = 1;
- time_t seconds = time(NULL);
- tm* timeinfo = localtime(&seconds);
- while (getline(cin, in_line)) {
- cout << "PID "<<_getpid() << endl << "NAMBER "<<count<<endl << "DATA "<<asctime(timeinfo) << endl;
- count++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement