Bez tytułu

z Wet Cat, 5 lata temu, napisane w Plain Text, wyświetlone 407 razy.
URL https://pastebin.k4be.pl/view/5301aec3 Udostępnij
Pobierz wklejkę lub Pokaż surowy tekst
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. int main()
  5. {
  6.     std::fstream out("test.txt", std::ios::out | std::ios::trunc | std::ios::binary);
  7.     out << "hello world";
  8.     out.flush();
  9.  
  10.     std::fstream in("test.txt", std::ios::in | std::ios::binary);
  11.     std::cout << in.rdbuf();
  12.     return 0;
  13. }
  14.  

odpowiedź "Bez tytułu"

Tutaj możesz odpowiedzieć na wklejkę z góry

captcha