set parameters? (cin>>Real not working)

Posted by sijianglv on
URL: http://quantlib.414.s1.nabble.com/set-parameters-cin-Real-not-working-tp15999.html

Hello all,

Sorry for this rookie question and thank you in advance for your time.

For example in EquityOptionPricing example, what I want is I could set rate, for example, as input. Basically if it is int I would simply use 
int rate;
cin >> rate;

But since now rate is "Real", which is a Quantlib defined class, it looks like >> operator is not overloaded in this class 

Any idea is truly welcome. 



------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users