<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-19T01:05:49+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/arduino/boolean_operators/boolean?rev=1708041859&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/constants/constants?rev=1360957754&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/if?rev=1708041848&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/control_structures/if?rev=1708041872&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/else?rev=1708041848&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/control_structures/while?rev=1708041976&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registermousehandler?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/else?rev=1708041885&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/close?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/while?rev=1361019359&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/while?rev=1708041848&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/checkerror?rev=1708042321&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/flush?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/control_structures/while?rev=1708041872&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/data_types/booleanvariables?rev=1708041851&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/control_structures/if?rev=1708041977&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/analog_io/analogwrite?rev=1360951690&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/for?rev=1708041847&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/if?rev=1708041886&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/arduino/boolean_operators/boolean?rev=1708041859&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:19+02:00</dc:date>
        <title>&amp;&amp; (logical and)</title>
        <link>https://code-reference.com/arduino/boolean_operators/boolean?rev=1708041859&amp;do=diff</link>
        <description>!Boolean Operators 

These can be used inside the condition of an if  (conditional)  and   ==,  !=,  &lt;,  &gt; (comparison operators) statement.

&amp;&amp; (logical and)

True only if both operands are true, e.g.


if (digitalRead(2) == HIGH  &amp;&amp; digitalRead(3) == HIGH) { // read two switches 
  // ...
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/constants/constants?rev=1360957754&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T20:49:14+02:00</dc:date>
        <title>constants</title>
        <link>https://code-reference.com/arduino/constants/constants?rev=1360957754&amp;do=diff</link>
        <description>Constants are predefined variables in the Arduino language. They are used to make the programs easier to read. We classify constants in groups.

Defining Logical Levels, true and false (Boolean Constants)

There are two constants used to represent truth and falsity in the Arduino language: true, and false.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/if?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>if  (conditional)  and   ==,  !=,   (comparison operators)</title>
        <link>https://code-reference.com/arduino/control_structures/if?rev=1708041848&amp;do=diff</link>
        <description>if, which is used in conjunction with a comparison operator, tests whether a certain condition has been reached, such as an input being above a certain number. The format for an if test is:

if (someVariable &gt; 50)
{
  // do something here
}

The program tests to see if someVariable is greater than 50. If it is, the program takes a particular action. Put another way, if the statement in parentheses is true, the statements inside the brackets are run. If not, the program skips over the code.</description>
    </item>
    <item rdf:about="https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:06+02:00</dc:date>
        <title>lua:codea:stargenerator:star.lua</title>
        <link>https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff</link>
        <description>Star = class()

function Star:init(init)
    -- you can accept and set parameters here
    self.mx = 500
    self.my = 400
    if init == true then
        self.x = math.random(self.mx-10,self.mx+10)
        self.y = math.random(self.my-10,self.my+10)
        self.size = math.random(1,3)
    else
        self.x = math.random(1,1200)
        self.y = math.random(1,1200)
        self.size = math.random(1,6)
    end
    self.xspeed = math.random(1,10)
    self.yspeed = math.random(1,10)
    
    se…</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/control_structures/if?rev=1708041872&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:32+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/cpp/control_structures/if?rev=1708041872&amp;do=diff</link>
        <description>if

The 'if' statement is one of many methods to control the flow of a program.  It tests whether or not a certain condition is true, and then executes code based on the test.


#include &lt;iostream&gt;
using namespace std;

int main(){

if (TRUE){
   cout &lt;&lt; &quot;This statement will be executed&quot;;
}

if (FALSE){
   cout &lt;&lt; &quot;This one will not&quot;;
}
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/else?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>if / else</title>
        <link>https://code-reference.com/arduino/control_structures/else?rev=1708041848&amp;do=diff</link>
        <description>if/else allows greater control over the flow of code than the basic if statement, by allowing multiple tests to be grouped together. For example, an analog input could be tested and one action taken if the input was less than 500, and another action taken if the input was 500 or greater. The code would look like this:</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>initwindow</title>
        <link>https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff</link>
        <description>initwindow

Syntax of initwindow


#include &quot;graphics.h&quot;
int initwindow(int width, int height, const char* title=&quot;Windows BGI&quot;,
int left=0, int top=0, bool dbflag=false, closeflag=true);
  

Description of initwindow


The initwindow function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function initializes the graphics system by opening a graphics window
of the specified size. The first two parameters (width and hei…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>mousey</title>
        <link>https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff</link>
        <description>mousey

Syntax of mousey


#include &quot;graphics.h&quot;
int mousey(void);
  

Description of mousey


The mousey function is available in the winbgim implementation of BGI
graphics. It returns the most recent y coordinate of the mouse within the
graphics window. Y-coordinates start with 0 at the top edge of the window
and increase to getmaxy( ) at the bottom edge of the window.</description>
    </item>
    <item rdf:about="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-07-31T22:37:05+02:00</dc:date>
        <title>Formatting Syntax</title>
        <link>https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff</link>
        <description>DokuWiki supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the Edit this page button at the top or bottom of the page. If you want to try something, just use the playground page. The simpler markup is easily accessible via quickbuttons, too.</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-12-10T13:35:50+02:00</dc:date>
        <title>Bash quick reference</title>
        <link>https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff</link>
        <description>Bash quick reference
Command	Description	Example     &amp;	Run the previous command in the background	ls &amp; &amp;&amp;	Logical AND	if [ “$foo” -ge “0” ] &amp;&amp; [ “$foo” -le “9”] ||	Logical OR	if [ “$foo” -lt “0” ] || [ “$foo” -gt “9” ] (not in Bourne shell) ^	Start of line	grep ”^foo” $	End of line	grep “foo$” =	String equality (cf. -eq) if [ “$foo” = “bar” ] !	Logical NOT	if [ “$foo” != “bar” ] $$	PID of current shell	echo “my PID = $$” $!	PID of last background command	ls &amp; echo “PID of ls = $!” $?	exit status…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/control_structures/while?rev=1708041976&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:16+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/objective-c/control_structures/while?rev=1708041976&amp;do=diff</link>
        <description>syntax



while (condition is true/untrue) {
    statement;
}

or 

while ( condition == true ) {
    do something until condition untrue
    }


while example objective c


        NSInteger i=0;
         while (i &lt; 42) {
                i++;
                if (i==42) NSLog(@&quot;whoooha &quot;);
        }</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registermousehandler?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>registermousehandler</title>
        <link>https://code-reference.com/c/graphics.h/registermousehandler?rev=1708041956&amp;do=diff</link>
        <description>registermousehandler

Example of registermousehandler


/* mouse example */
#include &quot;graphics.h&quot;

// The click_handler will be called whenever the left mouse button is
// clicked. It checks copies the x,y coordinates of the click to
// see if the click was on a red pixel. If so, then the boolean
// variable red_clicked is set to true. Note that in general
// all handlers should be quick. If they need to do more than a little
// work, they should set a variable that will trigger the work going,
…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>mousex</title>
        <link>https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff</link>
        <description>mousex

Syntax of mousex


#include &quot;graphics.h&quot;
int mousex(void);
  

Description of mousex


The mousex function is available in the winbgim implementation of BGI
graphics. It returns the most recent x coordinate of the mouse within the
graphics window. X-coordinates start with 0 at the left edge of the
window and increase to getmaxx( ) at the right edge of the window.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>setmousequeuestatus</title>
        <link>https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff</link>
        <description>setmousequeuestatus

Syntax of setmousequeuestatus


#include &quot;graphics.h&quot;
voud setmousequeuestatus(int kind, bool status=true);
  

Description of setmousequeuestatus


The setmousequeuestatus function is available in the winbgim
implementation of BGI graphics. This function controls whether mouse
events of a particular kind are queued for processing. If the status
parameter is false, then mouse events of the specified kind are not
queued. This means that each time a mouse event of that kind oc…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:35:55+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
 }


check if a condition is true or false

example of if in java




package plausibilitycheck;

import java.util.Scanner;

public class Plausibilitycheck{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int celsius;
        double fahrenheit;

        Scanner scan = new Scanner(System.in);

        System.out.print(&quot;Please type in Celsius : &quot;);
        celsius = scan.nextInt();

    …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:03:58+02:00</dc:date>
        <title>else</title>
        <link>https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
 } else {
      // if the &quot;if&quot; condition false
      command;
      }


check if a condition is true or false

example of else




package plausibilitycheck;

import java.util.Scanner;

public class Plausibilitycheck{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int celsius;
        double fahrenheit;

        Scanner scan = new Scanner(System.in);

        System.out.print(&quot;Please …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/control_structures/else?rev=1708041885&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:45+02:00</dc:date>
        <title>else</title>
        <link>https://code-reference.com/c/control_structures/else?rev=1708041885&amp;do=diff</link>
        <description>else


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

    if ( condition == true ){
    command;    
    } else {
       command;
    }


C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main( void )
{
  int i;

  for (i=0;i&lt;=99;i++){
    if (i==42) {
        printf(&quot;I have found the answer: %i\n&quot;,i);
    } else {
           printf(&quot;found any other…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>kbhit</title>
        <link>https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff</link>
        <description>kbhit

Syntax of kbhit


#include &quot;graphics.h&quot;
int kbhit(void);
  

Description of kbhit


The kbhit function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function returns true (non-zero) if there is a character in the input
buffer ready to read. Otherwise it returns false. In order to work, the
user must click in the graphics window (i.e., the Windows focus must be
in the graphics window).</description>
    </item>
    <item rdf:about="https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:06+02:00</dc:date>
        <title>Declaration Dataypes</title>
        <link>https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff</link>
        <description>package datatypes;

public class DataTypes {

    public static void main(String[] args) {
        // primitiv Datatypes
        
        boolean aa = true;     // 1 bit
        char bb = 'A';         // 2 Bytes
        char cc = 65;          // 2 Bytes
        byte dd = 12;          // 1 Byte -128 - +127
        short ee = 234;        // 2 Bytes -32768 - +32767
        int ff = 4711;         // 4 Bytes
        long gg = 34567;       // 8 Bytes
        float hh = 3.14f;      // 4 Bytes
        d…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>ismouseclick</title>
        <link>https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff</link>
        <description>ismouseclick

Syntax of ismouseclick


#include &quot;graphics.h&quot;
bool ismouseclick(int kind);
  

Description of ismouseclick


The ismouseclick function is available in the winbgim implementation of
BGI graphics. This function returns true if there is an unprocessed mouse
event of the specified kind. The argument to ismouseclick is one of these
constants from the graphics.h file:
  WM_MOUSEMOVE
if you want to detect a mouse movement
  WM_LBUTTONDBLCLK
...detect when the left mouse button is double …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/close?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>close</title>
        <link>https://code-reference.com/java/io/printstream/close?rev=1708042322&amp;do=diff</link>
        <description>Close and flush the print stream.


close(); 

return value: if IO error true otherwise false


Language Example



no example jet



output
   output for example</description>
    </item>
    <item rdf:about="https://code-reference.com/c/control_structures/while?rev=1361019359&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-16T13:55:59+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/c/control_structures/while?rev=1361019359&amp;do=diff</link>
        <description>while

    
    #include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

    while ( condition == true ) {
    do something until condition untrue
    }


C Sourcecode Example



#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main(void) {
    int i=0;
    
    while (i &lt;= 10) {
        printf(&quot;%i\n&quot;,i);
        i++;
    }
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/while?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>while loops</title>
        <link>https://code-reference.com/arduino/control_structures/while?rev=1708041848&amp;do=diff</link>
        <description>Description

while loops will loop continuously, and infinitely, until the expression inside the parenthesis, () becomes false. Something must change the tested variable, or the while loop will never exit. This could be in your code, such as an incremented variable, or an external condition, such as testing a sensor.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/checkerror?rev=1708042321&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:01+02:00</dc:date>
        <title>checkError</title>
        <link>https://code-reference.com/java/io/printstream/checkerror?rev=1708042321&amp;do=diff</link>
        <description>Flush the stream and return the value of error flag


checkError(); 

return value: boolean true/false


Language Example



no example jet



output
   output for example</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/flush?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>flush</title>
        <link>https://code-reference.com/java/io/printstream/flush?rev=1708042322&amp;do=diff</link>
        <description>After all pending data is send to stream the stream will be flushed


flush(); 

return value: boolean true/false


Language Example



 no example jet



output
   no output jet</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/control_structures/while?rev=1708041872&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:32+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/cpp/control_structures/while?rev=1708041872&amp;do=diff</link>
        <description>while

    
    #include &lt;iostream&gt; /* including standard library */

    while ( condition == true ) {
    do something until condition untrue
    }


cpp Sourcecode Example



#include &lt;iostream&gt; /* including standard library */

using namespace std;
int main(void) {
    int i=0;
    
    while (i &lt;= 99) {
        cout &lt;&lt; i &lt;&lt; endl;
        i++;
    }
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:12:37+02:00</dc:date>
        <title>equals</title>
        <link>https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff</link>
        <description>Compares object and indecates if they equal


equals(Object); 

return value: boolean true/false


equals Example in java



String a = &quot;42&quot;;
String b = &quot;144&quot;;

if ( a.equals(b) ) { 
    
    System.out.println(b+&quot; is the answer&quot;);
} else {

    System.out.println(b+&quot; is probably not the answer&quot;);
}</description>
    </item>
    <item rdf:about="https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-24T04:03:54+02:00</dc:date>
        <title>lua:codea:stargenerator:main.lua</title>
        <link>https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff</link>
        <description>-- stars
function setup()   
    displayMode(FULLSCREEN)
    createstars()
    checkagain = false
end

function createstars()
    stars = {}
    for i = 1,175 do 
        --rx = math.random(1,1200)
       -- ry= math.random(1,800)
        s= Star(true)
        --u = { x=rx, y=ry}
      table.insert(stars,s)
    end   
    for i = 1,50 do 
        --rx = math.random(1,1200)
       -- ry= math.random(1,800)
        s= Star(false)
        --u = { x=rx, y=ry}
      table.insert(stars,s)
    end  
  …</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/data_types/booleanvariables?rev=1708041851&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:11+02:00</dc:date>
        <title>boolean</title>
        <link>https://code-reference.com/arduino/data_types/booleanvariables?rev=1708041851&amp;do=diff</link>
        <description>A boolean holds one of two values, true or false.  (Each boolean variable occupies one byte of memory.)

Example


int LEDpin = 5;       // LED on pin 5
int switchPin = 13;   // momentary switch on 13, other side connected to ground

boolean running = false;

void setup()
{
  pinMode(LEDpin, OUTPUT);
  pinMode(switchPin, INPUT);
  digitalWrite(switchPin, HIGH);      // turn on pullup resistor
}

void loop()
{
  if (digitalRead(switchPin) == LOW)
  {  // switch is pressed - pullup keeps pin high …</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/control_structures/if?rev=1708041977&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:17+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/objective-c/control_structures/if?rev=1708041977&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
    }


if example 1 objective c


    NSString *string = @&quot;i wouldn't want to go anywhere without my wonderful towel&quot;;
    
    if ([string isEqualToString:@&quot;i wouldn't want to go anywhere without my wonderful towel&quot;]) {
        NSInteger a=42;
        NSLog(@&quot;correct %i&quot;, a);
    }
    
    else if ([string isEqualToString:@&quot;42&quot;]) {
        NSLog(@&quot;Sorry but the answer is not correct&quot;);
    }</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-06-04T18:45:53+02:00</dc:date>
        <title>cpp:variables</title>
        <link>https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff</link>
        <description>Variables

Variables are the means of storing data in a program. Say you want to make a calculator, you need to use variables. Say you want to make a program that takes in a word and then modifies it, you need to use variables. Variables can be created and “destroyed”(deconstructing comes later on so don't get your hopes up). The value or information that they store can be changed and in some cases, that you make it so, cannot be. Except for the syntax of the language, you are in control!</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/analog_io/analogwrite?rev=1360951690&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T19:08:10+02:00</dc:date>
        <title>analogWrite()</title>
        <link>https://code-reference.com/arduino/analog_io/analogwrite?rev=1360951690&amp;do=diff</link>
        <description>Description

Writes an analog value ( PWM wave) to a pin.  Can be used to light a LED at varying brightnesses or drive a motor at various speeds.  After a call to analogWrite(), the pin will generate a steady square wave of the specified duty cycle until the next call to analogWrite() (or a call to digitalRead() or digitalWrite() on the same pin).  The frequency of the PWM signal is approximately 490 Hz.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/for?rev=1708041847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:07+02:00</dc:date>
        <title>for statements</title>
        <link>https://code-reference.com/arduino/control_structures/for?rev=1708041847&amp;do=diff</link>
        <description>Desciption

The for statement is used to repeat a block of statements enclosed in curly braces. An increment counter is usually used to increment and terminate the loop. The for statement is useful for any repetitive operation, and is often used in combination with arrays to operate on collections of data/pins.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-18T09:11:21+02:00</dc:date>
        <title>for</title>
        <link>https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff</link>
        <description>for ( init; condition; increment ){
    statements;    
    }


description of for

a for loop do statements while the condition is true/untrue, the increment counts the loop, it is possible to use more than 1 condition in the for loop

example 1 of for in java




package codereferececomjava;
 
public class CodeRefereceComJava {
 
 
    public static void main(String[] args) {
        
        int myOtherCount=5;
 
 
        for (int i = 0; i &lt;= myOtherCount; i++) {
            System.out.print…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/control_structures/if?rev=1708041886&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:46+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/c/control_structures/if?rev=1708041886&amp;do=diff</link>
        <description>if


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

    if ( condition == true ){
    command;    
    }


C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main( void )
{
  int i;

  for (i=0;i&lt;=99;i++){
    if (i==42) {
        printf(&quot;I have found the answer: %i\n&quot;,i);
    }
}

return 0;
}</description>
    </item>
</rdf:RDF>
