On 2007-08-22 17:32, Cristian wrote:
> On Wed, 22 Aug 2007 11:21:39 -0400, "Victor Bazarov"
> <v.Abazarov@comAcast.net> wrote:
>
>>Cristian wrote:
>>> algebraic expression 'a*b+c' with CIN .Is it possible?
>>>
>>> How to transfer the algebraic expression 'a*b+c' to the variable s
>>> (all double) with cout in a "Console Application" ?
> ]zuip[
>>Read a string using 'std::getline'. If you need to calculate the
>>result of that expression, you'll need to implement an expression
>>parser. See chapter 6 of TC++PL.
>>
>>V
>
> Is there something already prepared ?
> Chapter 6 is very very crypticccccsss!!!!.....for me..
Yes, the code is in there, but if you really want to use it you really
should take the time to understand it also.
--
Erik Wikström