Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // A. Napisz klase sms zawierajaca publiczne pola do przechowywania przesylanej wiad. sms: Nadawca, odbiorca, tresc
- // B. do klasy sms dodaj 2 metody wczytujaca i wysylajaca przechowywne dane
- #include <iostream>
- using namespace std;
- class sms {
- string nadawca;
- string odbiorca;
- string tresc;
- };
- int main()
- {
- sms smspremium;
- cout <<"Kto wysyła:" cin >> smspremium.nadawca;
- cout <<"Kto odbiera:" cin >> smspremium.odbiorca;
- cout <<"Wpisz tresc:" cin >> smspremium.tresc;
- cout << "" << endl;
- cout << smspremium.odbiorca <<"przyszedl sms" <<
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement