Znaleziono 1 wynik

autor: programator
7 gru 2014, 15:30
Forum: C, C++, C#
Temat: klasy
Odpowiedzi: 0
Odsłony: 2442

klasy

#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;

class S
{
string nazwa;
string marka;
int wiek;
void wczytaj()
{
cout<<"podaj nazwe"<<endl;
cin>>nazwa;
cout<<"podaj marke"<<endl;
cin>>marka;
cout<<"podaj wiek"<<endl;
cin>>wiek;
}
void podaj()
{
cout ...