Programmierung: Unterschied zwischen den Versionen

Aus Wiki_2020
Wezi (Diskussion | Beiträge)
Wezi (Diskussion | Beiträge)
Zeile 68: Zeile 68:


=== C ===
=== C ===
* [https://www.logiqbit.com/arduino-pointers-how-to-use-pointers-in-your-sketches Arduino Pointers]
*'''Pointers'''
* [https://www.programiz.com/c-programming/c-pointers Pointers]
# [https://www.programiz.com/c-programming/c-structures-pointers Pointer 2 Structs]
* [https://www.mikrocontroller.net/topic/104156 Menue C]
# [https://www.logiqbit.com/arduino-pointers-how-to-use-pointers-in-your-sketches Arduino Pointers]
* [https://cboard.cprogramming.com/c-programming/99735-embedded-menu-system-2.html Embedded Menuesystem]
# [https://www.programiz.com/c-programming/c-pointers Pointers]
*'''Menu'''
# [https://www.mikrocontroller.net/topic/104156 Menue C]
# [https://cboard.cprogramming.com/c-programming/99735-embedded-menu-system-2.html Embedded Menuesystem]
* [http://www.geeksforgeeks.org/c/ A computer science portal for geeks ]
* [http://www.geeksforgeeks.org/c/ A computer science portal for geeks ]
* [https://de.wikibooks.org/wiki/C-Programmierung:_Eigene_Header C-Programmierung Wikibooks]
* [https://de.wikibooks.org/wiki/C-Programmierung:_Eigene_Header C-Programmierung Wikibooks]

Version vom 27. Februar 2023, 20:37 Uhr

Git / Github

Python

Codeexamples

#An example of a class
class Shape:
   def __init__(self, x, y):
       self.x = x
       self.y = y
       self.description = "This shape has not been described yet"
       self.author = "Nobody has claimed to make this shape yet"
   def area(self):
       return self.x * self.y
   def perimeter(self):
       return 2 * self.x + 2 * self.y
   def describe(self, text):
       self.description = text
   def authorName(self, text):
       self.author = text
   def scaleSize(self, scale):
       self.x = self.x * scale
       self.y = self.y * scale
#create 3 objekts of shape        
    rectangle = Shape(100, 45)  
    long_rectangle = Shape(120,10)
    fat_rectangle = Shape(130,120)
#finding the area of your rectangle:
    print(rectangle.area())
#finding the perimeter of your rectangle:
    print(rectangle.perimeter())
#describing the rectangle
    rectangle.describe("A wide rectangle, more than twice\
    as wide as it is tall")
#making the rectangle 50% smaller
    rectangle.scaleSize(0.5)
#re-printing the new area of the rectangle
    print(rectangle.area())

tkinter

Diverse

C

  • Pointers
  1. Pointer 2 Structs
  2. Arduino Pointers
  3. Pointers
  • Menu
  1. Menue C
  2. Embedded Menuesystem

MYSQL

Escape 
Sequence    Character Represented by Sequence
  \0         An ASCII NUL (0x00) character.
  \'         A single quote (“'”) character.
  \"         A double quote (“"”) character.
  \b         A backspace character.
  \n         A newline (linefeed) character.
  \r         A carriage return character.
  \t         A tab character.
  \Z         ASCII 26 (Control+Z).
  \\         A backslash (“\”) character.
  \%         A “%” character. 
  \_         A “_” character.