-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Лабораторная №1 #913
Лабораторная №1 #913
Conversation
sudo-odner
commented
Sep 20, 2024
Нужно временно отключить неактуальные тесты, чтобы они не замусоривали вывод. |
Исправил ошибку с логами |
Это задание только про Array, остальные контейнеры надо удалить. |
.idea/.gitignore
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Эти файлы не нужно выкладывать.
Lab1/CMakeLists.txt
Outdated
target_include_directories(Lab1 PUBLIC ../LibraryCPPClass) | ||
target_link_libraries(Lab1 LibraryCPPClass) | ||
|
||
add_test(NAME TestLab1 COMMAND Lab1 ${CMAKE_CURRENT_SOURCE_DIR}/input.txt ${CMAKE_CURRENT_SOURCE_DIR}/output.txt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output не нужно создавать в каталоге с исходниками
Lab1/lab1.cpp
Outdated
ifstream output(argv[2]); | ||
Array *arrTask1 = arrayCreateFromInput(input); | ||
task1(arrTask1); | ||
if(test(output, *arrTask1)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тест должен быть отдельно от программы, которая выводит результат.
{ | ||
return 0; | ||
size_t Array::size() const { | ||
return _size; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему две реализации array?
Тест на сервере не проходит. |
Принято.
Реализовать команды манипуляции стеком из языка Forth: https://skilldrick.github.io/easyforth
Входные данные
Выходные данные
Входные данные
Выходные данные
|