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

📄 maxtemp.cpp

📁 C++ 这是国外计算机科学教材系列《big C++》书籍的源代码ch4
💻 CPP
字号:
#include <iostream>

using namespace std;

int main()
{  
   double next;
   double highest;

   cout << "Please enter the temperature values:\n";
   if (cin >> next)
      highest = next;
   else
   {  
      cout << "No data!\n";
      return 1;
   }

   while (cin >> next)
   {  
      if (next > highest)
         highest = next;
   }

   cout << "The highest temperature is " << highest << "\n";

   return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -