Run-Time Check Failure #3 - The variable 'temperature' is being used without being initialized.
Run-Time Check Failure #3 - The variable 'negative' is being used without being initialized.
This is my program:
#include <fstream>
#include <iostream> //This is for input and output of the file
#include <string>
using namespace std;
const string stars = "*";
const string line = "|";
int main()
But yes, you're using variables that you haven't set to any value. And your error message makes no sense because you're checking if temperature equals negative, and I think you meant to check if temperature < 0. Also, you will never see the error message because the program immediately quits.