Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> // #inc (ctrl + spacja) <input output stream>
- int dodawanie(int a, int b) {
- return a + b;
- }
- int main()
- {
- unsigned int dlugoscSlowa = strlen("Dupadupa"); // string length
- std::cout << dlugoscSlowa << std::endl;;
- float dlugoscSlowaWfloat = float(dlugoscSlowa); // (float)dlugoscSlowa
- dlugoscSlowaWfloat = dlugoscSlowaWfloat / 3; // dlugoscSlowa /= 3
- //std::cout << dlugoscSlowaWfloat;
- std::cout << int(2 * 5.f + (2 + 2) - 5.1);
- // 10.0 + 4 - 5
- // 14.0 - 5
- // 9.0
- unsigned short liczba = 32770;
- //std::cout << liczba;
- int a;
- double b;
- float c;
- long d;
- char e;
- std::cin.get();
- std::cin.get();
- return 7;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement