Consider the following C++ program. As you can see it consistsof a very short main program that declares and uses two objects ofthe Temperature class.
#include <iostream>using namespace std;// Program to demonstrate Temperature class//—————————————–int main(){ Temperature freezing; Temperature boiling; freezing.setCelsius(0); boiling.setCelsius(100); cout << “freezing: ” << freezing.getFahrenheit() << “Fn”; cout << “boiling: ” << boiling.getFahrenheit() << “Fn”; return 0;}
Step 1: Copy this program into your C++ programeditor, and compile it. You should see several error messagescomplaining that “Temperature was not declared in this scope”. Thisis because this
PayPal Gateway not configured
PayPal Gateway not configured