Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Zad1
- #include <iostream>
- using namespace std;
- int main()
- {
- int x = 25;
- int *wsk_x = &x;
- *wsk_x = x*10;
- cout<<*wsk_x;
- return 0;
- }
- Zad2
- #include <iostream>
- using namespace std;
- struct Posciel
- {
- float szerokosc, dlugosc;
- string kolor, producent;
- int cena;
- };
- int main()
- {
- Posciel posciel;
- posciel.cena = 20;
- posciel.dlugosc = 12.5;
- posciel.szerokosc = 5.5;
- posciel.kolor = "czerwony";
- posciel.producent = "giorgio armani";
- cout << "Cena: " << posciel.cena<<endl;
- cout << "Dlugosc: " << posciel.dlugosc<<endl;
- cout << "Szerokosc: " << posciel.szerokosc<<endl;
- cout << "Kolor: " << posciel.kolor<<endl;
- cout << "Producent: " << posciel.producent<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement