⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch10_1.cpp

📁 钱能的c++程序设计的源代码和答案. 附带图书
💻 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 + -