Facebook
From król, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 213
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. struct punkt
  6.         {
  7.                 char nazwa;
  8.                 double x,y;
  9.                 void odczyt(ifstream&);
  10.                 void zapis(ofstream&);
  11.         };
  12.  
  13. int main()
  14. {
  15.         punkt A;
  16.         ifstream s_we("\KRYWANRedirectedUserFoldersgstawarzDocumentsVisual Studio 2010Projects�4.01�4.01Debugplik.txt");
  17.                
  18.                 if(!s_we.good())
  19.                 {
  20.                         cerr<<"Nie ma pliku";
  21.                         system("pause");
  22.                 }
  23.  
  24.                 ofstream s_wy("niewidze.txt");
  25.  
  26.  
  27.  
  28.         system("pause");
  29. }
  30.  
  31. void punkt::odczyt(ifstream & s_we)
  32. {
  33. char z;
  34. s_we>>nazwa>>z>>z>>x>>z>>y>>z;
  35. }
  36. void punkt::zapis(ofstream & s_wy)
  37. {
  38.  
  39. }
  40.