SymbolicC`
SymbolicC`
CAssign
CAssign[lhs,rhs]
is a symbolic representation of an assignment statement.
更多信息和选项
- SymbolicC expressions are inert; they evaluate to themselves, staying in an unevaluated form.
- SymbolicC expressions can be converted into a C string with ToCCodeString.
- The right-hand side of the assignment can be a list. This is useful for initializing an array.
范例
基本范例 (1)
To use SymbolicC you first need to load the package:
This assigns the location pointed to by pt to 10:
This declares a variable and assigns it:
You can use different operators. This adds 5 to a and assigns the result in a:
You can give a list of right-hand values. This is useful for initializing an array:
Wolfram Research (2010),CAssign,Wolfram 语言函数,https://reference.wolfram.com/language/SymbolicC/ref/CAssign.html.
文本
Wolfram Research (2010),CAssign,Wolfram 语言函数,https://reference.wolfram.com/language/SymbolicC/ref/CAssign.html.
CMS
Wolfram 语言. 2010. "CAssign." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/SymbolicC/ref/CAssign.html.
APA
Wolfram 语言. (2010). CAssign. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/SymbolicC/ref/CAssign.html 年