All data is digital in a digital computer -- the numbers are merely an abstraction for real objects, even if those objects are non-numeric (such as people, animals, cars, etc). However, functions that accept actual numbers typically accept int, long, short or char arguments to represent whole numbers (integer values), float or double to represent real numbers (floating point values), or complex data types that are intrinsically numeric, such as std::complex objects.
That is not a function, although it does involve the function of addition. A function is something that is done to numbers.
to accept high energy electrons
Only if it's a function.
There is no such thing. You probably meant the main function. The main function is the only function that is required as it serves as the entry point of the program.
Every C plus plus program that is a main program must have the function 'main'.
This is only true if you accept that 2 is greater than 1...
If you mean the arcsin function then the range is the whole of the real numbers - from "minus infinity" to "plus infinity". If you mean the cosecant function, the answer is the whole of the real numbers excluding (-1, 1).
8 plus 1 , minus 5, plus 7 + 13
If the domain is the real numbers then so is the range.
If you're reading the numbers sequentially, keep a running total. Alternatively, pass all the numbers to a function using a variable-length argument. Alternatively push the numbers into a vector then sum the vector with the following function: void sum_vector(std::vector<int> a) { int total=0; for(int i=0; i<a.size(); ++i) total+=a[i]; return(total); }
You can use rand(). Make sure that you use srand()to generate the seed for rand() (if you do not, you get so called pseudo random numbers).
The domain of a function is the set of it's possible x values that will make the function work and output y values. In this case, it would be all the real numbers.