mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-10-28 11:10:38 +01:00
kod
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
class Samochod {
|
||||
private:
|
||||
@@ -6,10 +6,7 @@ private:
|
||||
int rok;
|
||||
|
||||
public:
|
||||
Samochod(std::string m, int r) {
|
||||
marka = m;
|
||||
rok = r;
|
||||
}
|
||||
Samochod(std::string m, int r) : marka(m), rok(r) {}
|
||||
};
|
||||
|
||||
int main() {}
|
||||
|
||||
Reference in New Issue
Block a user