I believe you can. I think this is called Immediate Window. I am using VS2010 Ultimate, so I don’t know if it exists in your version.
[ctrl] + [alt] + i
But this only outputs output when the function returns a value. In addition, it may not work in some cases.
, :
int number = 10;
int main()
{
std::cout<<std:endl;
setNumber(4);
std::cout<<std:endl;
}
int getNumberSquared()
{
return number * number;
}
void setNumber(int n)
{
number = n;
}
1, :
getNumberSquared()
100
2 , 16