Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. /*
  2. * Program "Witaj"
  3. * Autor: ti222u12
  4. */
  5.  
  6. #include <iostream>
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12. // Wysyła tekst na ekran
  13. cout << false << ' ' << true << endl
  14. << boolalpha << false << ' ' << true << endl
  15. << noboolalpha << false << ' ' << true << endl << endl
  16.  
  17. << -1 << ' ' << -1U << ' ' << -1UL << endl
  18. << 10 << ' ' << 010 << ' ' << 0x10 << endl
  19. << oct << 10 << ' ' << 010 << ' ' << 0x10 << endl
  20. << hex << 10 << ' ' << 010 << ' ' << 0x10 << endl
  21. << dec << 10 << ' ' << 010 << ' ' << 0x10 << endl << endl
  22.  
  23. << .5 << ' ' << 1e-4 << ' ' << 1e-5 << ' ' << 1e5<< ' ' << 1e6 << ' ' << 1000000. << endl << endl
  24.  
  25. << "" << '\t' << "\"ABC\"" << ' ' << '\x21' << '\41' << endl
  26. << "ABCD\b\b1\r2" << '\n' << '\'' << "C:\\WINDOWS'" << endl;
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement