This page shows the fastest way to go from source code to a working calculation. You will build c-calc, run it in non-interactive mode with command-line arguments, and then try the interactive prompt-driven mode.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Project516/c-calc/llms.txt
Use this file to discover all available pages before exploring further.
Make sure you have GCC and
make installed before continuing. See Install c-calc from source if you haven’t built the binary yet.Build the binary
In the project directory, run:Alternatively, use the convenience script to build and launch in one command:A
c-calc binary appears in the project directory when the build succeeds.Run a calculation (non-interactive)
Pass two numbers and an operator as arguments:Output:c-calc supports
+, -, *, /, and %. All results are printed with four decimal places.What’s next
Interactive mode
Learn more about the prompt-driven workflow.
Non-interactive mode
Use c-calc in shell scripts and pipelines.