📄 ch10_1.cpp
字号:
//**********************
//** ch10_1.cpp **
//**********************
#include <iostream.h>
struct Weather
{
double temp; //温度
double wind; //风力
};
void main()
{
Weather today;
today.temp=30.5; //作为左值使用
today.wind=10.1;
cout <<"Temp=" <<today.temp <<endl; //作为右值使用
cout <<"Wind=" <<today.wind <<endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -