Popravil fileDevice.cpp tako da dejansko naredi datoteke, če še ne obstajajo
This commit is contained in:
parent
8222f8dd0a
commit
74cc571eef
270 changed files with 104 additions and 74 deletions
|
|
@ -1,12 +0,0 @@
|
|||
#include <istream>
|
||||
#include <cstdint>
|
||||
#include "inputDevice.h"
|
||||
|
||||
InputDevice::InputDevice(std::istream& input): in(input){}; //konstruktor
|
||||
|
||||
uint8_t InputDevice::read() { //metoda read
|
||||
int c = in.get();
|
||||
if (c == EOF) return 0;
|
||||
else return static_cast<uint8_t>(c);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue