3章4节给变量赋值
2008-05-09 21:46
190 查看
#include <iostream>
int main()
{
using std::cout;
using std::endl;
short unsigned int width = 5, length;
length = 10;
// 定义变量和赋值变量可以一次多个 并可以混合
unsigned short int area = (width * length);
cout << " width = " << width << endl;
cout << " length = " << length << endl;
cout << " area = " << area << endl;
return 0;
}
相关文章推荐
- ES6学习3章:变量的解构赋值
- 2.python的变量与赋值
- 01黑马程序员_变量,赋值运算
- 多动手试试,其实List类型的变量在页面上取到的值可以直接赋值给一个js的Array数组变量
- shell 脚本中将输出内容赋值给一个变量时不换行
- java成员变量在什么时候赋值的?
- Linux Shell Bash 变量赋值中"$()"的作用
- 【ES6】变量的解构赋值
- 关于为c++类中的变量赋值的问题
- 关于java数组中某个元素用等号赋值给中间变量需要注意的问题。
- 模式匹配,匹配结果赋值给变量
- oracle存储过程简单实例 变量赋值 游标遍历
- 跟Alex学Python之- 你真的了解Python的变量赋值原理么? 推荐
- MySQL存储过程中使用SELECT …INTO语句为变量赋值
- Integer 类型的变量,编译器不会给你默认值,不赋值会报错
- C/C++ 通过初始化列表和构造函数内赋值初始化成员变量的区别
- 在js中使用jstl标签给js变量赋值
- python中的变量赋值,浅拷贝,深拷贝
- ES6学习笔记-变量解构赋值
- 格式化时间戳,并赋值给变量