Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /* TYPY ZMIENNYCH w C++
- int, short, long long - liczby całkowite
- unsigned - liczby naturalne
- float, double - liczby rzeczywiste (zmiennoprzecinkowe)
- bool - prawda lub fałsz
- char - znak
- string - ciąg znaków*
- * string nie jest podstawowym typem zmiennych, ale klasą
- */
- int main()
- {
- cout << "Jak masz na imie? ";
- string imie;
- cin >> imie;
- cout << "Ile masz lat? ";
- short wiek;
- cin >> wiek;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement