Popravil fileDevice.cpp tako da dejansko naredi datoteke, če še ne obstajajo

This commit is contained in:
Timon 2025-12-01 13:37:24 +01:00
parent 8222f8dd0a
commit 74cc571eef
270 changed files with 104 additions and 74 deletions

2
.gitignore vendored
View file

@ -5,3 +5,5 @@ sictools.jar
#ignorej ukaze za sic/xe #ignorej ukaze za sic/xe
Appendix_A_thru_C.pdf Appendix_A_thru_C.pdf
rek_sum.asm rek_sum.asm
ass2/.vscode
ass2/sic

View file

@ -1,23 +0,0 @@
#include <string>
#include <fstream>
#include "fileDevice.h"
#include <stdexcept>
fileDevice::fileDevice(std::string& filename): file(filename, std::ios::in | std::ios::out | std::ios::binary) {
if (!file.is_open()) {
throw std::runtime_error("Datoteke ni mogoče odpreti: " + filename);
}
}
uint8_t fileDevice::read() {
int c = file.get();
if (c == EOF) {
return 0;
}
return static_cast<uint8_t>(c);
}
void fileDevice::write(uint8_t val) {
file.put(static_cast<char>(val));
file.flush();
}

0
ass2/files/file10.dat Normal file
View file

0
ass2/files/file100.dat Normal file
View file

0
ass2/files/file101.dat Normal file
View file

0
ass2/files/file102.dat Normal file
View file

0
ass2/files/file103.dat Normal file
View file

0
ass2/files/file104.dat Normal file
View file

0
ass2/files/file105.dat Normal file
View file

0
ass2/files/file106.dat Normal file
View file

0
ass2/files/file107.dat Normal file
View file

0
ass2/files/file108.dat Normal file
View file

0
ass2/files/file109.dat Normal file
View file

0
ass2/files/file11.dat Normal file
View file

0
ass2/files/file110.dat Normal file
View file

0
ass2/files/file111.dat Normal file
View file

0
ass2/files/file112.dat Normal file
View file

0
ass2/files/file113.dat Normal file
View file

0
ass2/files/file114.dat Normal file
View file

0
ass2/files/file115.dat Normal file
View file

0
ass2/files/file116.dat Normal file
View file

0
ass2/files/file117.dat Normal file
View file

0
ass2/files/file118.dat Normal file
View file

0
ass2/files/file119.dat Normal file
View file

0
ass2/files/file12.dat Normal file
View file

0
ass2/files/file120.dat Normal file
View file

0
ass2/files/file121.dat Normal file
View file

0
ass2/files/file122.dat Normal file
View file

0
ass2/files/file123.dat Normal file
View file

0
ass2/files/file124.dat Normal file
View file

0
ass2/files/file125.dat Normal file
View file

0
ass2/files/file126.dat Normal file
View file

0
ass2/files/file127.dat Normal file
View file

0
ass2/files/file128.dat Normal file
View file

0
ass2/files/file129.dat Normal file
View file

0
ass2/files/file13.dat Normal file
View file

0
ass2/files/file130.dat Normal file
View file

0
ass2/files/file131.dat Normal file
View file

0
ass2/files/file132.dat Normal file
View file

0
ass2/files/file133.dat Normal file
View file

0
ass2/files/file134.dat Normal file
View file

0
ass2/files/file135.dat Normal file
View file

0
ass2/files/file136.dat Normal file
View file

0
ass2/files/file137.dat Normal file
View file

0
ass2/files/file138.dat Normal file
View file

0
ass2/files/file139.dat Normal file
View file

0
ass2/files/file14.dat Normal file
View file

0
ass2/files/file140.dat Normal file
View file

0
ass2/files/file141.dat Normal file
View file

0
ass2/files/file142.dat Normal file
View file

0
ass2/files/file143.dat Normal file
View file

0
ass2/files/file144.dat Normal file
View file

0
ass2/files/file145.dat Normal file
View file

0
ass2/files/file146.dat Normal file
View file

0
ass2/files/file147.dat Normal file
View file

0
ass2/files/file148.dat Normal file
View file

0
ass2/files/file149.dat Normal file
View file

0
ass2/files/file15.dat Normal file
View file

0
ass2/files/file150.dat Normal file
View file

0
ass2/files/file151.dat Normal file
View file

0
ass2/files/file152.dat Normal file
View file

0
ass2/files/file153.dat Normal file
View file

0
ass2/files/file154.dat Normal file
View file

0
ass2/files/file155.dat Normal file
View file

0
ass2/files/file156.dat Normal file
View file

0
ass2/files/file157.dat Normal file
View file

0
ass2/files/file158.dat Normal file
View file

0
ass2/files/file159.dat Normal file
View file

0
ass2/files/file16.dat Normal file
View file

0
ass2/files/file160.dat Normal file
View file

0
ass2/files/file161.dat Normal file
View file

0
ass2/files/file162.dat Normal file
View file

0
ass2/files/file163.dat Normal file
View file

0
ass2/files/file164.dat Normal file
View file

0
ass2/files/file165.dat Normal file
View file

0
ass2/files/file166.dat Normal file
View file

0
ass2/files/file167.dat Normal file
View file

0
ass2/files/file168.dat Normal file
View file

0
ass2/files/file169.dat Normal file
View file

0
ass2/files/file17.dat Normal file
View file

0
ass2/files/file170.dat Normal file
View file

0
ass2/files/file171.dat Normal file
View file

0
ass2/files/file172.dat Normal file
View file

0
ass2/files/file173.dat Normal file
View file

0
ass2/files/file174.dat Normal file
View file

0
ass2/files/file175.dat Normal file
View file

0
ass2/files/file176.dat Normal file
View file

0
ass2/files/file177.dat Normal file
View file

0
ass2/files/file178.dat Normal file
View file

0
ass2/files/file179.dat Normal file
View file

0
ass2/files/file18.dat Normal file
View file

0
ass2/files/file180.dat Normal file
View file

0
ass2/files/file181.dat Normal file
View file

0
ass2/files/file182.dat Normal file
View file

0
ass2/files/file183.dat Normal file
View file

0
ass2/files/file184.dat Normal file
View file

0
ass2/files/file185.dat Normal file
View file

0
ass2/files/file186.dat Normal file
View file

0
ass2/files/file187.dat Normal file
View file

0
ass2/files/file188.dat Normal file
View file

Some files were not shown because too many files have changed in this diff Show more