#include <iostream>
#include "kuloncuccok.h"

using namespace std;

// Ez egy példaprogram, ami egy egysegVektor nevű struct-ot használ, ami külön fájlokban van deklarálva.

int main()
{
    cout << "Egyik:\n";
    egysegVektor jo(0,1);
    kiir(jo);

    cout << "\nMasik:\n";
    egysegVektor hibas(5,6);
    kiir(hibas);

    return 0;
}

/*
Aki parancssorból fordítaná (ezt a neten találtam):
Suppose that your program has two source files: file1.cpp, file2.cpp. You could compile all of them in a single command:
> g++ -o myprog.exe file1.cpp file2.cpp
However, we usually compile each of the source files separately into object file, and link them together in the later stage. In this case, changes in one file does not require re-compilation of the other files.
> g++ -c file1.cpp
> g++ -c file2.cpp
> g++ -o myprog.exe file1.o file2.o

További részletek (avagy akit jobban érdekel, hogy hogyan működik a fordító:
                     https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html#zz-1.4
*/
