Posts

Showing posts with the label c++

The Asterisk Symbol in C

Image
The Asterisk Symbol in C:     Figure 1:   I scripted this asterisk in SVG.  You can view the source-code of this asterisk at my Codepen account. This symbol, in the C programming language, represents the multiplication operator. Multiplication, in C, is a binary [1] .   multiplicative operation.      Snippet 1:   The above-depicted program illustrates the use of the asterisk, in C, as a multiplication operator.      Figure 2:   What the program depicted above in Figure 2  looks like when compiled and run. The asterisk symbol, in CSS, is termed ‘the universal selector.’  It targets all of the elements of an HTML 5 document, so as to apply the values of style properties thereto. In SQL, the asterisk symbol represents ...

The Increment and Decrement Operators in C:

Image
The Increment Operator in C      Figure 1:   The C symbol. The Increment and Decrement Operators in C: Introduction: In C-derived programming languages, being able to increment and decrement number values is an extremely important skill. The increment and decrement operations are deployed in loops etc., and whilst scripting videogames in suites such as Unity and Unreal – which use C#/JavaScript and C++ respectively – these operations are very often employed – amongst other things – to effect the motion of avatars and sprites and projectiles etc. Body: Operator Classification: The Increment and Decrement operations are classed as unary operations, which means that the operator takes a single operand. Example: In an expression such as: 1++ ,...

Pseudo-Random Numbers in C

Image
Pseudo-random numbers in C Pseudo-random numbers in C: Introduction: In Ancient Greek, the adjective: ψευδής [1] . or, when transliterated: ‘pseudḗs’ means: ‘lying,’ ‘false,’ ‘fictitious,’ ‘sham’ [2] . . A classical computer is a deterministic machine, and, in and of itself, cannot generate a truly random number.  A classical computer, in and of itself, can only generate a pseudo-random number. [3] . A pseudo-random number is not a true random number – its having been g...