Skip to the task
Layout
Back to classic view

You are looking at lesson 2. Your place is still lesson 3, task 1: Conditions.

EDITTask 6 of 23 · step 4: Input with input.hConnect the input.h library
Connect the input.h library in practice/02/

A second line: the program p02_card will use the course library course_input.

Checklist

  • Every task is one commit with a clear message.

Numbered notes in the code explain the important lines.

Details & hint

Stuck? Without this line compiling succeeds, but the linker reports undefined reference to `read_int'.

practice 02 CMakeLists.txt Code Diff +1
M · MODIFIED Green = add, blue = change, red mark = removed line.
add_executable(p02_card main.c)
target_link_libraries(p02_card PRIVATE course_input)
Note 1: p02_card uses the library course_input (input.h).