Can someone explain to me why this shows up as

Foothill (user input) : -9.222255e+061
----------------------------------------------------
DeAnza (user input) : -9.222255e+061
----------------------------------------------------
SJSU (user input) : -9.222255e+061
----------------------------------------------------
: 10
----------------------------------------------------
: 20 //my input
----------------------------------------------------
: 30
----------------------------------------------------

void VectorList::DailyReport()
{

	

	cout << "==========NGS Daily Temperature Report==========" << endl;
	cout << "================================================" << endl;
	cout << "------------------------------------------------" << endl;
	for(int K=0, size=List.size() ; K<List.size(); K++) {
		cout << List[K].GetDesignation() << "  : " << List[K].GetTemperature() <<  endl;
		cout << "------------------------------------------------" << endl;
	}
}

That usually means that your variable contains junk and you haven't
initialized it to anything. I am guessing its a double variable somewhere in
your program.

9.222255e+061

Approximately it also means -9.2 * 10^61

Member Avatar for stephen.id

if your variable is in a class then you should have your class constructor and deconstructor for initializing the variable and deinitiliazing the variable

if your variable is in a class then you should have your class constructor and deconstructor for initializing the variable and deinitiliazing the variable

no such thing as deconstructor and deinitiailazing, in fact that's not even a word. I assume you mean destructor.

Member Avatar for stephen.id

yes thats what i meant sorry my mistake wasnt payin attention that well :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.