Skip to content

Instantly share code, notes, and snippets.

View camilajenny's full-sized avatar
🏠
Working from home

Kamila Łopuszańska camilajenny

🏠
Working from home
View GitHub Profile
@camilajenny
camilajenny / cars-operators.cpp
Created February 8, 2017 17:33
shallow/deep copy
#include <iostream>
#include <string>
using namespace std;
class Pojazd {
private:
string lusterko[3] = {"lewe", "prawe"};
protected:
int id = 0;
@camilajenny
camilajenny / cars.cpp
Last active February 8, 2017 17:32
pojazd<|-samochod
#include <string>
using namespace std;
class Pojazd {
private:
string lusterko[3] = {"lewe", "prawe"};
public:
//friend class Samochod;
Pojazd& operator=(const Pojazd&);
@camilajenny
camilajenny / IPv4Validator.java
Last active January 2, 2017 15:37
validate IPv4 address
import java.util.InputMismatchException;
import java.util.Scanner;
import java.util.regex.*;
public class IPv4Validator {
private String ipv4;
private final String IPv4Regex = "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}";
IPv4Validator(String ipv4) {