Englisch: ‘set’ or ‘referenced’Russisch translation: \"присваивать значение\" и \"ссылаться на переменную\" KudoZ The KudoZ network provides a framework for translators ... More |
|
| Glossareintrag (aus Frage unten abgeleitet) | | Englisch Begriff oder Satz: | ‘set’ or ‘referenced’ | | Russisch Übersetzung: | \"присваивать значение\" и \"ссылаться на переменную\" | | Eingetragen von: | Yuriy Vassilenko |
| Optionen: - Zu diesem Eintrag beitragen |
Übersetzungen Englisch > Russisch [PRO] Tech/Engineering - Computer: Software / unix shell - описание языка | | Englisch Begriff oder Satz: ‘set’ or ‘referenced’ | A variable is a symbol that represents a set of values. In the shell language, all variables
are represented by strings. Variable values can be ‘set’ or ‘referenced’; for example: ... |
| | | "присваивать значение" и "ссылаться на переменную" | Erklärung: Суть такая: 'set' - это когда переменной присваивается значение, например,
A:= 2;
А 'reference' - это когда значение, присвоенное переменной, используется в выражениях, в которых фигурируют не сами эти значения, а имя переменной:
B:= A + 3;
Кстати, Юрий, зря Вы примеры не привели, которые (судя по всему) приведены ниже в тексте
-------------------------------------------------- Note added at 24 мин (2007-11-21 18:29:49 GMT) --------------------------------------------------
Упс... Прошу прощения - пока набирал свой ответ, LaBoule уже дал похожий...
-------------------------------------------------- Note added at 38 мин (2007-11-21 18:43:56 GMT) --------------------------------------------------
Из примеров видно, что в языках программирования оболочки (скорее всего, речь идет о чем-то типа csh, tcsh из ОС UNIX) есть своя специфика - там переменные строкового типа, но суть от этого не меняется
-------------------------------------------------- Note added at 42 мин (2007-11-21 18:48:04 GMT) --------------------------------------------------
KPATEP, а где продаются батоны по такой цене? Хочу!!! :) |
| Ausgewählte Antwort von:
Vladimir Romanov Ukraine
| Hinweis von Fragesteller an den AntwortendenСпасибо! 4 KudoZ-Punkte wurden für diese Antwort vergeben |
|
18 Min. Antwortsicherheit:   |
| Значения переменных могут задаваться или к ним можно обращаться...
Erklärung: Пока такой вариант. А что идет дальше за "for example: "?
| Igor Savenkov Russische Föderation Spezialgebiet Muttersprache: Russisch PRO-Punkte in Kategorie: 115 5 corroborated select projects in this pair and field  |
| Hinweise an den Beantworter der Frage
Fragesteller: A variable is a symbol that represents a set of values. In the shell language, all variables
are represented by strings. Variable values can be ‘set’ or ‘referenced’; for example:
• Set its value
This is an operation were the character string is assigned to the variable. For
example:
count=1
status=OPEN
• Reference its value
This causes the shell to replace the reference with the actual character string that is
the current value of the variable; for example:
count=1
let count=$count+1
status=OPEN
status=${status}ED
The initial values of ‘count’ and ‘status’ were set to ‘1’ and ‘OPEN’ respectively. The
new values will be ‘2’ and ‘OPENED’.
In the above example count is actually assigned the character value ‘1’ and not the
integer value 1. Integer calculations can be performed on the character strings using
the shell command ‘let’. This will take as input a character string representing an
integer or calculation and assign the result as a character string to the variable on
the left hand side of the assignment operator.
A variable can be repeatedly set to different strings, which change the variable's value
each time. However, a variable can have only one data value at a time.
Fragesteller: неудачно...
|
| | Login to enter a peer comment (or grade) |
21 Min. Antwortsicherheit:  Zustimmung (Netto): +3 |
| "присваивать значение" и "ссылаться на переменную"
Erklärung: Суть такая: 'set' - это когда переменной присваивается значение, например,
A:= 2;
А 'reference' - это когда значение, присвоенное переменной, используется в выражениях, в которых фигурируют не сами эти значения, а имя переменной:
B:= A + 3;
Кстати, Юрий, зря Вы примеры не привели, которые (судя по всему) приведены ниже в тексте
-------------------------------------------------- Note added at 24 мин (2007-11-21 18:29:49 GMT) --------------------------------------------------
Упс... Прошу прощения - пока набирал свой ответ, LaBoule уже дал похожий...
-------------------------------------------------- Note added at 38 мин (2007-11-21 18:43:56 GMT) --------------------------------------------------
Из примеров видно, что в языках программирования оболочки (скорее всего, речь идет о чем-то типа csh, tcsh из ОС UNIX) есть своя специфика - там переменные строкового типа, но суть от этого не меняется
-------------------------------------------------- Note added at 42 мин (2007-11-21 18:48:04 GMT) --------------------------------------------------
KPATEP, а где продаются батоны по такой цене? Хочу!!! :)
| | Hinweis von Fragesteller an den Antwortenden | | | |