Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя NurImtiaz137

Автор NurImtiaz137, история, 7 лет назад, По-английски

I am very keen to know is there any way to send header files and their definition files along with main code file to online judges for evaluation. Like, I have a header file Something.h, its definition file (hello.cpp) and main file A.cpp

Something.h: class Something{ void hello(); }

hello.cpp:

include "Something.h"

void Something :: hello() { //Definition }

A.cpp: // Implementation of solution to a problem

Or is their any way I can send the executable file instead of program files? If no, then why they do not provide such capability? Why they do not encourage to use header files?

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится