
-----------------------------------
sheepo39
Fri Dec 11, 2009 5:15 pm

Can't use &quot;cout&quot; in seperate functions
-----------------------------------
I'm a beginning C++ programmer, and I'm reading a book on it and I'm at the part with declaring functions. I understand the whole concept of it and all, but I don't understand why you can't use "cout" instead of "return" to output a value.

Like 

float bodyTempC()
{
	float temperature = 37.0 ;
	return temperature ;
}

void bodyTempF()
{
	float temperature = 98.6 ;
	cout 