Skip to content

Commit

Permalink
Boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
xehivs committed Apr 21, 2016
0 parents commit 5831192
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
lab5
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
all:
g++ *.cpp -std=c++0x -Wall -o lab5
./lab5
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Najbliżsi sąsiedzi

## Klasa `Sample`
- Stwórz klasę `Sample`, zawierającą:
- zmienną całkowitą `label`,
- wektor liczb zmiennoprzecinkowych `features`,
- w konstruktorze klasy `Sample` przyjmuj oba te parametry,
- stwórz też dla nich *gettery*.

## Klasa `Dataset`
- Stwórz klasę `Dataset`, zawierającą:
- wektor obiektów klasy `Sample`,
- metodę `push_back()`, dodającą nową próbkę do wektora:
- metoda ta powinna sprawdzać, czy wektor `features` dla każdej z wprowadzanych próbek jest tej samej długości.
1 change: 1 addition & 0 deletions Sample.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "Sample.h"
5 changes: 5 additions & 0 deletions Sample.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

class Sample {

};
7 changes: 7 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "Sample.h"

int main(int argc, char const *argv[])
{
/* code */
return 0;
}

0 comments on commit 5831192

Please sign in to comment.