<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=C%2B%2B</id>
	<title>C++ - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=C%2B%2B"/>
	<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=C%2B%2B&amp;action=history"/>
	<updated>2026-05-06T10:30:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://entorb.net//wiki/index.php?title=C%2B%2B&amp;diff=4890&amp;oldid=prev</id>
		<title>Torben at 20:43, 30 October 2024</title>
		<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=C%2B%2B&amp;diff=4890&amp;oldid=prev"/>
		<updated>2024-10-30T20:43:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Coding]]&lt;br /&gt;
==General==&lt;br /&gt;
===Basic Variable Types===&lt;br /&gt;
====Number Types====&lt;br /&gt;
 C and C++ : char, int, long, unsigned long&lt;br /&gt;
 Arduino   : byte, word&lt;br /&gt;
 inttypes  : int8_t, int16_t, int32_t; uint8_t, uint16_t, uint32_t&lt;br /&gt;
preferable use inttypes!&lt;br /&gt;
 inttype  : Arduino / C/C++&lt;br /&gt;
 uint8_t  : byte&lt;br /&gt;
 uint16_t : unsigned int&lt;br /&gt;
 uint32_t : unsigned long&lt;br /&gt;
&lt;br /&gt;
====float====&lt;br /&gt;
int to float&lt;br /&gt;
 float f = float(i);&lt;br /&gt;
====array====&lt;br /&gt;
initialize all array values with 0&lt;br /&gt;
 unsigned int barchart_data[128]; &lt;br /&gt;
 barchart_data[128] = {0};&lt;br /&gt;
&lt;br /&gt;
shift array to left&lt;br /&gt;
 for (unsigned int i = 0; i &amp;lt; px_x - 1; i++)&lt;br /&gt;
 { // ends at px_x - 2&lt;br /&gt;
   barchart_data[i] = barchart_data[i + 1];&lt;br /&gt;
 }&lt;br /&gt;
length of array&lt;br /&gt;
 sizeof(data) / sizeof(data[0])&lt;br /&gt;
&lt;br /&gt;
===Pre Compiler Defines===&lt;br /&gt;
Using pre compiler defines it can be chosen which part of the sources are actually imported and compiled&lt;br /&gt;
 #define TM_LOAD_DEVICE_OLED_128X32 1&lt;br /&gt;
 ...&lt;br /&gt;
 #if TM_LOAD_DEVICE_OLED_128X32 == 1&lt;br /&gt;
 #include &amp;quot;TM_OLED_128x32_Class.h&amp;quot;&lt;br /&gt;
 auto my_oled = TM_OLED_128x32_Class();&lt;br /&gt;
 #endif&lt;br /&gt;
&lt;br /&gt;
==Arduino specific==&lt;/div&gt;</summary>
		<author><name>Torben</name></author>
	</entry>
</feed>