update Makefile in lab3

This commit is contained in:
ItsMAX0112 2024-09-10 16:23:13 +05:30
parent 86df05a44f
commit f243104cf9
2 changed files with 6 additions and 3 deletions

View File

@ -2,5 +2,7 @@ scheduler.out: scheduler.cpp
g++ scheduler.cpp -o scheduler.out
run_sched: scheduler.out
./scheduler.out $(WORKLOAD_FILE) $(SCHEDULING_ALGORITHM)
./scheduler.out $(WF) $(SA)
clean:
rm *.out

View File

@ -25,9 +25,10 @@ int main(int argc, char **argv) {
ifstream file(file_to_search_in, ios::binary);
string buffer;
// buffer.resize();
// file.read(&buffer[0], len2);
while(getline(file, buffer)) {
if(buffer[0] == '<'){
continue;
}
cout << buffer << endl;
}