добавление наработок

This commit is contained in:
Dmitry Borisenko
2022-08-25 17:33:07 +02:00
parent 6822bdf532
commit a4b7eb00d7
15 changed files with 360 additions and 176 deletions

24
training/QueueInst.cpp Normal file
View File

@@ -0,0 +1,24 @@
#ifdef QUEUE_FROM_INST
#include "queue/QueueInst.h"
QueueInstance::QueueInstance(String text) {
_text = text;
}
QueueInstance::~QueueInstance() {}
String QueueInstance::get() {
return _text;
}
//========проверка очереди из экземпляров======
// myQueue = new QueueFromInstance;
// myQueue->push(QueueInstance("text1"));
// myQueue->push(QueueInstance("text2"));
// myQueue->push(QueueInstance("text3"));
// Serial.println(myQueue->front().get());
// Serial.println(myQueue->front().get());
// Serial.println(myQueue->front().get());
#endif