Difference: CppCodingStyleStandards (2 vs. 3)

Revision 32016-09-08 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

C++ Coding Style Standard

Line: 23 to 23
  const double NORMAL = 98.6;//degrees Fahrenheit double temperature;
Added:
>
>
// Get the measured temperature
  cout << "Enter your temperature: "; cin >> temperature;
Added:
>
>
// Check if temperature is in the normal range or not, // and give user appropriate advice
  if (temperature > NORMAL) { cout << "You have a fever.\n";
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback