Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watch and expression must have a pointer

Tags:

visual-c++

auto_ptr<MoistAir> ma(new MoistAir);

L1->setPabs(Pabs);
L1->setQm(qm2);
L1->setT(t1);
L1->setX(x1);

if ((L2->getQm() / L3->getQm()) > 1)   
    w = L3->getQm() / (A0 * 1.2);  
  else   
    w = L2->getQm() / (A0 * 1.2);

//This is a function i tried to add watch on
double MoistAir::getQm()
{
  return Fqm;
}

Debugger VS I tries to add watch on the function in visual studio to get the result? Is it possible. Do i have to introduce a variable or step in to the function? I just want to mark the code as in C# and get value.

If i step in to then function i can see the result.

like image 250
Johan Bertilsdotter Avatar asked Oct 25 '25 18:10

Johan Bertilsdotter


1 Answers

After some more reading/talking to person programming C/C++ told me how to do. maybe it's can help somebody else.

((L2)._Myptr)->getQm()  2.3999999756939365  double

enter image description here

like image 99
Johan Bertilsdotter Avatar answered Oct 28 '25 03:10

Johan Bertilsdotter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!