<?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-04-25T13:21:50+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/arduino/constants/constants?rev=1360957754&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/keywords/false?rev=1708041962&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/arduino/control_structures/while?rev=1708041848&amp;do=diff"/>
                <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/c/graphics.h/mousey?rev=1708041951&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/cpp/control_structures/if?rev=1708041872&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/java/control_structures/else?rev=1708041838&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/c/mysql/mysql.h/mysql_commit?rev=1361919057&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/c/graphics.h/getmouseclick?rev=1708041947&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/cpp/cassert/assert?rev=1708041878&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&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/close?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/assert.h/assert?rev=1398606376&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/do?rev=1515738547&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/cpp/variables?rev=1401900353&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/c/graphics.h/setmousequeuestatus?rev=1708041956&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/java/control_structures/if?rev=1365582955&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/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/c/keywords/false?rev=1708041962&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:02+02:00</dc:date>
        <title>false</title>
        <link>https://code-reference.com/c/keywords/false?rev=1708041962&amp;do=diff</link>
        <description>description of false

false is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of false c example
  no example at the moment</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/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/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/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/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/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/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/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/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/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T23:50:57+02:00</dc:date>
        <title>mysql_commit</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff</link>
        <description>my_bool mysql_commit(MYSQL *mysql)


description of mysql_commit

mysql_commit Commits the current transaction. 
The action of this function is subject to the value of the completion_type system variable. 

if the value of completion_type is 2, the server performs a release after terminating a transaction and closes the client connection. The client program should call mysql_close().</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/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>getmouseclick</title>
        <link>https://code-reference.com/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff</link>
        <description>getmouseclick

Syntax of getmouseclick


#include &quot;graphics.h&quot;
voud getmouseclick(int kind, int&amp;amp; x, int&amp;amp; y);
  

Description of getmouseclick


The getmouseclick function is available in the winbgim implementation of
BGI graphics. This function sets x and y to the pixel coordinates of an
unprocessed event of the specified kind. If there is no such event, then
the function sets both x and y to -1. The value of the argument kind may
be any of the constants listed above. After calling getmo…</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/cpp/cassert/assert?rev=1708041878&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:38+02:00</dc:date>
        <title>assert</title>
        <link>https://code-reference.com/cpp/cassert/assert?rev=1708041878&amp;do=diff</link>
        <description>void assert(scalar expression);


With assert you can test your programm for logical errors.  



The assert () macro will insert diagnostics into programs 


When executed, if expression (which is a scalar type you have) is false (ie, compares equal to 0), 

assert (), provide information about the particular call that failed to stderr and abort ()</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>clearmouseclick</title>
        <link>https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff</link>
        <description>clearmouseclick

Syntax of clearmouseclick


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

Description of clearmouseclick


The clearmouseclick function is available in the winbgim implementation
of BGI graphics. This is just like getmouseclick, except it does not
provide the x and y coordinates of the event. The value of the argument
kind may be any of the constants listed above. After calling
getmouseclick, for a particular kind of event, the ismouseclick will
return false for that…</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/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/assert.h/assert?rev=1398606376&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-27T15:46:16+02:00</dc:date>
        <title>assert</title>
        <link>https://code-reference.com/c/assert.h/assert?rev=1398606376&amp;do=diff</link>
        <description>void assert(scalar expression);


With assert you can test your programm for logical errors.  



The assert () macro will insert diagnostics into programs 


When executed, if expression (which is a scalar type you have) is false (ie, compares equal to 0), 

assert (), provide information about the particular call that failed to stderr and abort ()</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/do?rev=1515738547&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:07+02:00</dc:date>
        <title>do</title>
        <link>https://code-reference.com/java/loops/do?rev=1515738547&amp;do=diff</link>
        <description>do {
 command;
} while (condition);



a do loop will run while a condition is false

example of do loop in java


package codereferececomjava;

public class CodeRefereceComJava {
 
    public static void main(String[] args) {
    
        int i=4;
        
        do {
         i++;
        } while(i==4);
        
        System.out.println(&quot;i is :&quot; + i );
    }
}</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/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/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/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/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/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>
</rdf:RDF>
