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
12
ass2/implementations/inputDevice.cpp
Normal file
12
ass2/implementations/inputDevice.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "../headers/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);
|
||||
}
|
||||
|
||||
bool InputDevice::test() {return true;}
|
||||
void InputDevice::write(uint8_t t) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue