Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // A. Napisz klase sms zawierajaca publiczne pola do przechowywania przesylanej wiad. sms: Nadawca, odbiorca, tresc
  2. // B. do klasy sms dodaj 2 metody wczytujaca i wysylajaca przechowywne dane
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. class sms {
  8. string nadawca;
  9. string odbiorca;
  10. string tresc;
  11. };
  12. int main()
  13. {
  14. sms smspremium;
  15.  
  16. cout <<"Kto wysyła:" cin >> smspremium.nadawca;
  17. cout <<"Kto odbiera:" cin >> smspremium.odbiorca;
  18. cout <<"Wpisz tresc:" cin >> smspremium.tresc;
  19.  
  20.  
  21.  
  22. cout << "" << endl;
  23. cout << smspremium.odbiorca <<"przyszedl sms" <<
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement