fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string znaki("napis");
  8. cout << "Przed:" << znaki << endl;
  9. znaki.clear();
  10. cout << "Po:" << znaki << endl;
  11. return 0;
  12. }
  13.  
  14.  
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
Przed:napis
Po: