Skip to content
Snippets Groups Projects
Commit f902ae8a authored by Eckl, Máté's avatar Eckl, Máté
Browse files

Kis kiegészítések.

A szemantikai hiba még nincs kijavítva az előző commit óta.
parent 5aa063f8
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@ bin
obj
NHF/NHF*
NHF/doc*
*.o
No preview for this file type
NHF : main.o heap.o test_container.o
c++ -o NHF main.o heap.o test_container.o
main.o : main.cpp include/test_container.h include/proc_test.h
c++ -I include/ -c main.cpp
heap.o : include/heap.h src/heap.cpp
c++ -I include/ -c src/heap.cpp
test_container.o : include/test_container.h include/proc_test.h
c++ -I include/ -c src/test_container.cpp
clean :
rm NHF main.o heap.o test_container.o
......@@ -8,7 +8,7 @@
using namespace std;
#ifdef DEBUG
ifstream fin("/home/mate/Dropbox/Egyetem/Tárgyak/2015 tavasz/Programozás alapjai 2/NHF/NHF/tests/test_1");
ifstream fin("/home/mate/Dropbox/Egyetem/Tárgyak/2015 tavasz/Programozás alapjai 2/NHF/NHF/tests/test_2");
#define cin fin
#endif // DEBUG
......@@ -28,7 +28,7 @@ int main()
try
{
heap mem(heap_size);
cout<<"Memory of size "<<heap_size<<" initialized.\n";
clog<<"Memory of size "<<heap_size<<" initialized.\n";
test_container procs;
test_struct request;
while((cin>>request.preface))
......@@ -46,7 +46,7 @@ int main()
case '+':
try
{
cout<<"Adding process of name '"<<request.name<<"' and of size "<<request.block_size<<".\n";
clog<<"Adding process of name '"<<request.name<<"' and of size "<<request.block_size<<".\n";
procs.add(new proc_test(request.name,process(mem),request.block_size));
break;
}
......@@ -56,7 +56,7 @@ int main()
break;
}
case '-':
cout<<"Killing process of name '"<<request.name<<"'.\n";
clog<<"Killing process of name '"<<request.name<<"'.\n";
procs.kill(request.name);break;
default: throw ("A terv szerint a bemenettel kapcsolatos hibákat nem kezeljük.\nA tesztelés ezért kilép");//direkt nem kapom el sehol
}
......
#! /bin/bash
zip -r /tmp/on82hb-NHF.zip NHF/main.cpp NHF/include NHF/src
FILENAME=prog2-NHF
(
libreoffice --invisible --convert-to pdf --outdir /tmp Dokumentáció.odt
cd /tmp
zip $FILENAME.zip Dokumentáció.pdf
)&
cd NHF
zip -r /tmp/$FILENAME.zip main.cpp include src tests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment