Skip to content

print command

Paweł Waligóra edited this page Dec 17, 2023 · 11 revisions

Print

Call

program call with print command:

./knapsack-solver.exe print [text]

Functionality

Prints [text] on console.

print responds to \n, \t and other special characters.

Why would you need this?

print command is useful when you run multiple tasks with tasks command and you display results of these commands on console. print allows you to write some text in between the commands, which can improve redability of the output.

Another use case is when you run multiple tasks with tasks command and you don't display results of these commands on console. print allows you to write some text in between the execution of commands, telling you which tasks have finished.

Arguments

[text] - text that will be printed on console.