"nameofbinary" is absolutely anything that you care to type. e.g. image we are making a program that I want to call "sumNumbers". You have written some c++ in a file called firstProgram.cpp and you want the output to be called sumNumbers. you would do this
g++ firstProgram.cpp -o sumNumbers
Once that had successfully completed. [If it doesn't then you wil need to edit firstProgram.cpp and fix the problem.] You can run it with
Note the ./ That is because you have to have a path in Linux to the executable.
Executable is a file that is to be run, e.g. the output of a compiler. Path is the places that executables can be found. The variable PATH contains all the default places that commands exist, e.g. /usr/bin in which you will find g++ and ls etc.
However, you have created the file sumNumbers in a directory that is unlikely to be in the path. Therefore you have to explicitly set the path in the executable line which you do by adding ./ or if you which the whole path e.g. /home/coding101/test/sumNumbers. Note this assumes your login name is coding101, but just replace that with your login name or, you can use the ~ symbol which just means home directory, e.g. ~/test/sumNumbers
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...