Skip to content

Commit

Permalink
Little beatify
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuraJey committed Apr 10, 2024
1 parent b55c854 commit fbdfc23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion File_Reading.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// 2 разделить на .h и .cpp файлы

// я включил режим пояснительной бригады и накидал конспекта по материалу на тему особенностей синтаксиса C++ связанных с классами
#ifndef FILE_READING
#define FILE_READING

#include <cstdio>
#include <cstdlib>
Expand Down Expand Up @@ -33,7 +35,7 @@ char* const ReadFromFile(const char* FileName) {
FileBuffer[FileSize] = '\0';
return FileBuffer;
}

#endif // !FILE_READING
// // контейнер, для хранения, токинезации, и многократного чтения текста.
// class TextContainer {
// // обьявление членов класса (пометка для компилятора о существовании таких символов)
Expand Down
3 changes: 2 additions & 1 deletion main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <map>
Expand Down Expand Up @@ -39,7 +40,7 @@ void TextMapTest(Allocator* allocator, const char* allocator_name, TextContainer
{
STLAdapter<char*> WrapperAllocator(allocator);
std::map<const char*, size_t, CStringComparator, STLAdapter<std::pair<const char* const, size_t>>> Map(WrapperAllocator);

time_mark = std::chrono::high_resolution_clock::now();
const char* word;
while (word = text.GetNextWord()) { // не нулевая ссылка кастуется к true
Expand Down

0 comments on commit fbdfc23

Please sign in to comment.