123
C-Control Pro Mega Series
© 2008 Conrad Electronic
Do While str(i)
i=i+
1
' Repeat character as long as unequal zero
End While
Return i
End Sub
Sub main()
Dim Len As Integer
Dim Text(
15
) As Char
Text=
"hello world"
Len=StringLength(Text)
End Sub
In main the reference of text is presented as parameters to the function StringLength. If in a function
a normal parameter is changed then the change is not visible outside this function. With references
this is different. Through parameter str can in StringLength the contents of text be changed since str
is only the reference (pointer) to the array variable text.
Presently arrays can only be presented "by Reference"!
5.3.8
Tables
5.3.8.1
Operator Precedence
Rang
Operator
10
( )
9
-
(negatives Vorzeichen)
8
* /
7
Mod
6
+ -
5
<< >>
4
= <>
< <= > >=
3
Not
2
And
1
Or Xor
5.3.8.2
Operators
Arithmetische Operatoren
+
Addition
-
Subtraktion
*
Multiplikation
Содержание C-Control Pro Mega Series
Страница 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Страница 9: ...VIII Inhalt 2008 Conrad Electronic ...
Страница 10: ...Part 1 ...
Страница 17: ...Part 2 ...
Страница 23: ...Part 3 ...
Страница 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Страница 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Страница 58: ...Part 4 ...
Страница 91: ...82 IDE 2008 Conrad Electronic ...
Страница 92: ...Part 5 ...
Страница 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Страница 136: ...Part 6 ...
Страница 231: ...Part 7 ...
Страница 240: ......