Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- #include <fstream>
- using namespace std;
- string srednik(string s) {
- ifstream plik;
- plik.open(s);
- string lines;
- while (!plik.eof()) {
- getline(plik, lines);
- if (lines[lines.size() - 1] == ';') {
- return lines;
- }
- }
- return "brak";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement