正在加载图片...
Slide 8 Variable declarations Variable declaration syntax <type> <identifier Examples int nickel; A variable must be declared before it can be used! int main(t 5;// illegal: x was not declared what is syntax, semantics?Slide 8 Variable Declarations Variable declaration syntax: <type> <identifier>; Examples: int nickel; int penny; A variable must be declared before it can be used! int main(){ x = 5; // illegal: x was not declared } what is syntax, semantics?
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有