Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- struct zestaw{
- int integ;
- string s;
- string ch;
- bool b1, b2, b3, b4;
- unsigned int uc1, uc2, uc3, uc4;
- float f1, f2, f3, f4;
- };
- void SortCount(string plik, string pl1, string pl2){
- }
- //void SortInt(string plik, string pl1, string pl2){
- // fstream input;
- // input.open(plik, fstream::in);
- //}
- void SortString(string plik, string pl1, string pl2){
- }
- void SymmetricDifference(string plik, string pl1, string pl2){
- }
- int main(){
- fstream Plik;
- // fstream pp1;
- // fstream pp2;
- string plik = "in.txt";
- Plik.open("in.txt", fstream::in | fstream::out);
- // pp1.open(pl1.s_str(), fstream::in | fstream::out);
- // pp2.open(pl2.s_str(), fstream::in | fstream::out);
- zestaw dane;
- // while(!Plik.eof()){
- Plik >> dane.integ;
- Plik.seekp(1, fstream::cur);
- // Plik >> dane.s;
- getline(Plik, dane.s);
- getline(Plik, dane.ch);
- // Plik >> dane.ch;
- Plik >> dane.b1 >> dane.uc1 >> dane.f1;
- Plik >> dane.b2 >> dane.uc2 >> dane.f2;
- Plik >> dane.b3 >> dane.uc3 >> dane.f3;
- Plik >> dane.b4 >> dane.uc4 >> dane.f4;
- // }
- cout << dane.integ << endl;
- cout << dane.s <<endl;
- cout << dane.ch<< endl;
- cout << dane.b1 << " "<< dane.uc1 << " "<< dane.f1 << endl;
- cout << dane.b2 << " "<< dane.uc2<< " " << dane.f2<< endl;
- cout << dane.b3<< " " << dane.uc3<< " " << dane.f3<< endl;
- cout << dane.b4 << " "<< dane.uc4 << " "<< dane.f4<< endl;
- Plik.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement