Arithmetic und String Betriebe |
- Um neue Informationen von den Vorlage Werten zu verursachen, werden Druckfehler- und Variablen Datenwerte in Arbeitsvorg�nge miteinbezogen.
- Die zwei allgemeinsten Weisen, Variablen und Konstanten zu manipulieren sind durch Arithmetic - und Stringbetriebe.
- Zum contruct diese verarbeitenaussagen oder Ausdr�cke, grundlegende Versorgungsmaterial-sichtlichArithmetic und Stringoperatoren.
|
Arithmetische Operatoren
|
Viel von Informationsverarbeitung bezieht mit ein, Arithmetic an den numerischen Datenarten anzuwenden und Werte werden addiert, subtrahiert, multipliziert und geteilt, um Resultate zu erzeugen, entweder abschlie�ende Resultate oder Zwischenwerte, die in weitere arithmetische Betriebe miteinbezogen werden. F�r diese grundlegenden sichtlichversorgungsmaterialien der Zwecke ein Satz von sieben arithmetischen Operatoren gezeigt in der folgenden Tabelle.
|
Operator |
Use |
+ |
Addition. Adds the values appearing on the two sides of the
operator. |
- |
Subtraction. Subtracts the value on the right of the operator from
the value on the left of the operator. |
* |
Multiplication. Multiplies the values appearing on the two sides of
the operator. |
/ |
Division. Divides the value on the left of the operator (dividend)
by the value on the right of the operator (divisor). |
\ |
Integer Division. Divides the value on the left of the operator by
the value on the right of the operator, giving an Integer result. |
Mod |
Modulo Division. Returns the remainder of the division of the
value on the left of the operator by the value on the right of the
operator. |
^ |
Exponentiation. Raises the value on the left of the operator to the
power on the right of the operator. |
|
Beispiel
|
Dim Answer1, Answer2 As Single
Answer1 = 1 + (2 / 3)
Answer2 = (1 + 2) / 3)
|
|
String-Operatoren
|
Grundlegende sichtlichversorgungsmaterialien der Hintereinanderschaltung Operator (u.) zum zusammenzuf�gen der einzelnen Daten reiht auf, um eine l�ngere String jener Kombinationen herzustellen und dergleichen Operator sucht nach zusammenpassenden Buchstaben in einer String.
|
Operator |
Use |
& or + |
Concatenation. Appends the string value appearing on the right of
the operator to the string value on the left of the operator. |
Like |
Determines whether a string matches a given pattern. |
|
Keywords:
Arithmetic and String Operations in VB.NET,
visual basic string,
java string,
bash arithmetic,
arithmetic operator,
c++ string,
java arithmetic,
arithmetic operators,
arithmetic function,
php string,
unix arithmetic,
perl string,
c++ arithmetic,
string compare,
division operations,
javascript string,
math arithmetic,
bit arithmetic
|
HTML Quizes |
|
XML Quizes |
|
Browser Scripting Quizes |
|
Server Scripting Quizes |
|
.NET (dotnet) Quizes |
|
Multimedia Quizes |
|
Web Building Quizes |
|
Java Quizes |
|
Programming Langauges Quizes |
|
Soft Skills Quizes |
|
Database Quizes |
|
Operating System Quizes |
|
Software Testing Quizes |
|
SAP Module Quizes |
|
Networking Programming Quizes |
|
Microsoft Office Quizes |
|
Accounting Quizes |
|
|