您的位置:首页 > 其它

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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: