Eine Variable ist ein Container für Werte des Typs der Variable. Variablentypen sind:

Variablentyp Bedeutung Beschreibung
int ganze Zahlen ganze Zahlen (-32.768 bis 32.767)
long ganze Zahlen (-2 Milliarden bis 2 Milliarden) – gut, wenn man z.B. die abgelaufenen Millisekunden zählen will, da die schon mal über 32.767 gehen
float Fließkommazahl gebrochene Zahlen
char Character Alphanumerische Zeichen (Buchstaben, Zahlen, Sonderzeichen)
array Variablenfeld mehrere Werte eines Variablentyps können gespeichert werden

Variablentyp int

Der Variablentyp int speichert ganze Zahlen in einem Wertebereich von -32.768 bis 32.767.

In diesem Beispiel wird der ganzzahligen (int) Variable meinWert der Wert 10 zugewiesen. Überall, wo man nun auf meinWert zugreift, erhält man 10.

Variablentyp long

Reicht der Wertebereich von int nicht aus, so kann man auf den Variablentyp long zurückgreifen. Ganze Zahlen von -2 Milliarden bis 2 Milliarden können gespeichert werden.

Variablentyp float

Oft benötigt man gebrochene Zahlen. Diese Werte können mit dem Variablentyp float gespeichert werden:

Variablentyp char

Um z.B. einen Buchstaben zu speichern benötigt man den Variablentyp char.

Werte werden in einfachen Anführungszeichen (Minutenstrich) übergeben.


Bei Arrays handelt es sich im Grunde nicht um einen eigenen Variablentyp, sondern um eine Gruppierung mehrerer Variablen eines Typs.

Im Beispiel wird als erstes ein Array vom Typ int angelegt. Die 5 in eckigen Klammern hinter dem Variablennamen bestimmen die Anzahl der Speicherplätze, die das Array bereit stellt. Man nennt die Anzahl der Speicherplätze auch die Länge des Arrays.

Im Programm kann man durch indizierte Abfragen auf die Speicherplätze des Arrays zugreifen. Die erste Stelle im Array ist die Stelle 0: meineWerte[0], der Wert ist 10 usw.


  1. Plug USB disk carefully: Never pull out the flash drive when the indicator light twinkle very fast, because USB disk is reading or writing data, half-way pulled out may cause hardware or data damage. Do not turn off the related program immediately after the backup documentation, because at that time the light of USB disk is still on flashing, indicating that process is not completely over, if pull out the USB disk at that time, it is easy to affect the backup. So backup files to USB flash drive, it should take a moment shut down some related procedures to prevent accidents. Similarly, do not pull out USB disk when the system prompts “can not stop”, it will also cause data loss.

  2. Hallo,
    ich brauche mal deine Hilfe:
    Ich bekomme aus einer Library eine Seriennummer in dem Format
    uid[0] bis uid[4] bzw bis uid[7] (je nachdem ob 5 oder 8 stellige seriennummer).
    Jeztt möchte ich diesen Wert an eine andere Funktion übergeben.
    knx.groupWrite14Byte(0,7,4, sendestring );

    dort muss ich die uid-bytes wieder einzeln abbekommen:
    bool KnxTpUart::groupWrite14Byte(int mainGroup, int middleGroup, int subGroup, char value) {
    createKNXMessageFrame(2, KNX_COMMAND_WRITE, mainGroup, middleGroup, subGroup, 0);
    return sendMessage();

    void KnxTelegram::set14ByteValue(char value) {

    Frage: wie muss ich die funktionen/variablen definieren das das klappt? (das auffüllen auf 14 byte kriege ich schon hin). Wahrscheinlich muss das schon nicht „char value“ sein… aber ich kapiers einfach nicht :-(

    Für Hilfe bin ich SEHR dankbar.


  3. […] dem Setup kann man noch Bibliotheken einbinden und globale Variablen deklarieren. (Wenn du nicht weißt, was global bedeutet, mach dir noch keinen Kopf darum. Das ist […]

  4. Hallo,
    ich brauche mal Hilfe zur Benutzung des Monitors (Terminals). Beim Durchlaufen einer Lichtschranke sollen die Zeitabstände in „millis“ auf dem Monitor ausgegeben werden. Das funktioniert auch, „aaaber“ die Werte werden alle in der ersten Zeile fortlaufend angezeigt. Meine Frage: Welche Bibliothek setzt den Cursor z.B. in Zeile 16 und Spalte 20? Ich würde mich freuen, wenn mir jemand einen Hinweis gibt.
    Grüße. Uli.

  5. … [Trackback]

    […] Read More here|Read More|Read More Informations here|Here you will find 42740 more Informations|Infos to that Topic: […]

  6. … [Trackback]

    […] Find More here|Find More|Find More Informations here|There you can find 78361 additional Informations|Informations on that Topic: […]

  7. … [Trackback]

    […] Read More on|Read More|Read More Informations here|Here you will find 47823 more Informations|Infos to that Topic: […]

  8. Cheap Wholesale Jerseys

    S.How To Draw Manga Chibi CharactersChibi or Super Deformed are fun characters used in Manga. Mad About Manga 锟?How to Draw Manga book has a free bonus teaching you how to draw chibi characters with a 7 stage process. Like for instance, if your beloved…

  9. … [Trackback]

    […] Read More on|Read More|Find More Infos here|Here you can find 208 more Infos|Infos to that Topic: […]

  10. Cheap Trent Taylor Jersey

    „We welcome feedback on these pragmatic proposals to extend the area of the oceans in which there might be space rocket debris,“ he said, adding that there have already been rocket launches from the Mahia Peninsula on the east coast of New Zealand’s…

  11. Sam Morsy Jersey

    The Cuevas del Canelobre are a series of caves located only 24 kilometers from Alicante, The inner most cave boasts the highest vault ceiling of any cave in Spain. Since your redecorating a small room, try not to organize the piece of furniture items h…

  12. New York Jets Marcus Gilchrist Jersey

    The broken parts can aspirate your little one causing serious respiratory conditions. Because they maintain a very low temperature its the perfect place to see a beautifully eerie performance in complete comfort. This will keep your belly in order and…

  13. Dee Milliner Jersey

    If you want to make use of the said scheme, you will be required to pay the sum of $15. TEHRAN, June 1 (Xinhua) — Iran’s men’s national soccer team plunged two spots to land in the 30th place in the world, Press TV reported on Thursday. Divided into…

  14. Shaquille ONeal Jersey

    Learn To Draw Manga Step-By-StepManga characters are becoming so popular around the world, and of course the number of people who would like to learn how to draw manga is increasing every day. With so many interesting places to discover aCar Hire Spain…

  15. Mats Hummels World Cup Jersey

    The same is true of email addresses: each one is valuable, as it can be used to inform the customer of new products and site updates after the transaction has taken place.However, problems including the unreasonable vying for exclusive copyrights, bidd…

  16. Gabby Williams College Jersey

    Author’s Resource BoxRachel Harding recommends Paris for couples and families alike.c7creative. The toys need to be kept clean to make sure the dust from the toys does not choke them. Physical objects in which undertake place and tiny knickknacks, orn…

  17. Glenn Dorsey Jersey

    Les sacs remplis de gaz de rembourrage a rvolutionn le monde de basket n盲r det Nike Cortez Dames tait introducerede il y a plus de 30 ans.1136 dollars in the previous session, while the U.Information Analytics: Just gathering information is actually in…

  18. Authentic Rasul Douglas Jersey

    Information Advertising and marketing: Smart electronic marketing experts understand the electrical power from web content as well as the technique that may own involvement as well as company functionality.S. To avoid constipation one is also suggested…

  19. Elgin Cook College Jersey

    A lot of care needs to be taken when buying your infants clothes. economic data was due out Monday, while this week ’s highlight would be the June retail sales scheduled for release Tuesday.48 percent, to 5,071.The Cuevas del Canelobre are a series of…

  20. Laurent Depoitre Belgium Jersey

    A huge number of manga lovers, who attempt to draw manga, experience difficulties to control the exact facial expressions, body movements, and emotions for their manga characters. Subsequently, you need to approach a local police bureau to get standard…

  21. Bernardo Silva Portugal Jersey

    There are several symptoms of constipation and some of them are headache, lack of appetite, lethargy, cheerlessness, dripping of saliva and foul smell from the mouth. Many people do not know that an observatory was included in the design which affords…

  22. Jake Burton Jersey

    The city’s famous museum, the Louvre is huge and worth a visit if you have the time,with almost a third of a million exhibits, you will not be able to see everything in one trip. Milk: take 2 teaspoons of gulkand made by roses or shell of isabgol with…

  23. Lenny Dykstra Jersey

    The fibrous tissues and mucus membrane in the vaginal passage stretch several times during child birth. „Defence was good£¬ we didn’t foul£¬ we rebounded£¬ that was obviously the key to the game£¬ that whole stretch. 1.Should you be in love with thei…

  24. Robert Horry Jersey

    Another contender to be reckoned with is the Prague champion this year, Valary Aiyabei of Kenya, with a best of 2:21:57.Mr.What’s the important distinction?The Variation between a Fisheye Lens and a Extensive Angle. 26 (Xinhua) Italian prosecutor…

  25. Justin Peters Jersey

    26 (Xinhua) Italian prosecutors on Monday asked for a 26year jail sentence for Francesco Schettino, the former captain of the Concordia cruise ship, for his role in the shipwreck that killed 32 people in 2012, Italian media reported. Such women need to…

  26. Milos Degenek Australia Jersey

    Zwicker has purchased an extended warranty which he paid $100 for a new speedometer and not the regular price of $400 to $500. The first grade court’s verdict is expected in February, according to media reports.Women with lose genial passage can also…

  27. Charles Barkley Jersey

    7 against New Orleans.[2] For example, the signature feature of Facebook, a news feed, drew millions of complaints when it first appeared, but users now say that it is an important and highly desirable feature.? According to GM?s spokeswoman, the compa…

  28. Shea Weber Jersey Sale

    S. Undergo 35 week potency phases for both lower and chest. Thus, there is less of the shaft actually showing, making the organ appear shorter.The government also aims to generate 400 million U.PerspectiveFirst off, if a man is already comfortable with…

  29. Nicklas Barkroth Sweden Jersey

    7 against New Orleans.<p>Walnut is one of the most multipurpose and popular cabinet making woods.Britain has voted to leave the European Union after a campaign led by the U. Different colors and different arrangements are the features you can fin…

  30. Cheap Marshon Lattimore Jersey

    An important thing that you need to do to gain the advantage is to apply early. The huge bulk of digital SLR proprietors shoot with the APSC sized sensors with a crop factor of 1. Visualize yourself with large leg muscles that are coiled enjoy springs,…

  31. Fernando Valenzuela Jersey

    5.The 18page document clearly outlines what is expected of players, officials and even the federation during camping and major tournaments, the statement said. Remember to work often overlooked muscles afre the wedding of your workout – muscles i…

  32. Customized Czech Republic Hockey Jerseys

    You must prioritize photography for your wedding also it must be given a good sum of funds so that you can appreciate the high quality photographs for a long period of time.Kansai Paint CEO Hiroshi Ishino told the press on Wednesday that Helios, the Do…

  33. Kemba Walker Jersey

    It is one among the best natural vaginal tightening methods to restore vaginal tightness.•Smoking. You need to consume garlic to keep infections away. For example, this button that won鈥檛 let you click it:You might also hear of something called AJA…

  34. Robert Griffin III Jersey

    Staying active and fit helps maintain male hormone, but so does frequent seed release – so maintaining sensual activity (whether alone or with a partner) can help to diminish shrinkage.A extensive angle lens will constantly have an angle of view…

  35. Kenneth Faried Jersey

    Otherwise, you can check out some websites that would assist you in applying for the job that you want especially if you’re planning to move near Colorado or Jackson Hole.ROME, Jan.Hichilema’s arrest had heightened tension in the southern African…

  36. Chris Kelly Jersey UK

    8 points during the fivegame winning streak that began on Nov. Working in a ski resort can be very rewarding and fun.S. No matter whom you are or who you are with, every corner of the place is assured can give you the happiness and enjoyment you锟絩e loo…

  37. Maikel Franco Jersey

    Last year a hip injury has forced Cherono to withdraw from the New York City Marathon.•Smoking. With lose vaginal passage, women cannot offer intense sexual pleasure to their men. 7 (Xinhua) Japan’s Kansai Paint has announced its 572 million euro…

  38. … [Trackback]

    […] Read More on|Read More|Read More Infos here|There you can find 96600 additional Infos|Infos on that Topic: […]

  39. Cheap Florida Panthers Jerseys

    The virus has approached a lot of my players, but for him it is too much. Tomorrow (Saturday) morning, they have free time and rest because recovery is much more important than a training session now.In scenario of a reoccurrence at the very same patie…

  40. … [Trackback]

    […] Find More on|Find More|Read More Infos here|There you will find 34831 more Infos|Informations to that Topic: […]

Comments are closed, but trackbacks and pingbacks are open.