Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #15541

Re: convertion frem char to double

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: convertion frem char to double
Date 2012-04-24 22:13 +1200
Message-ID <9vncm2Fi68U3@mid.individual.net> (permalink)
References <e872e9ba-1b60-4a24-922e-a4b3311d7e4f@m7g2000vbg.googlegroups.com> <9vn9loFi68U2@mid.individual.net> <a21b4af2-4b77-4fdb-8a2c-1d15386aafd5@l3g2000vbv.googlegroups.com>

Show all headers | View raw


On 04/24/12 09:53 PM, aboudayosra@yahoo.fr wrote:
> On 24 avr, 11:22, Ian Collins<ian-n...@hotmail.com>  wrote:
>> On 04/24/12 09:13 PM, aboudayo...@yahoo.fr wrote:
>>
>>> i find one error that i can't know how to resolve :
>>
>>> .../src/devices/mesh/dot11s/iaware-metric.cc:91: error: invalid
>>> operands of types ‘const char [10]’ and ‘double’ to binary
>>> ‘operator<<’
>>
>>> and this  my code line 91:
>>
>>> double  SNRTAG;
>>
>> Mixing upper case variable names and macros is very confusing.
>>
>>> NS_LOG_UNCOND (" SNRTAG :"<<csT.Get());
>>
>>> can anyone help me please
>>
>> Assuming it is a macro, what is NS_LOG_UNCOND?
>
>   "NS_LOG_UNCOND" it's a logging in ns3 and his role to Output the
> requested message unconditionaly.

What is " SNRTAG :"<<csT.Get() supposed to do?  It looks to me (and the 
compiler appears to agree) like you are trying to insert something into 
a string literal.

Show the prototype/definition of "NS_LOG_UNCOND".

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

convertion frem char to double "aboudayosra@yahoo.fr" <aboudayosra@yahoo.fr> - 2012-04-24 02:13 -0700
  Re: convertion frem char to double Ian Collins <ian-news@hotmail.com> - 2012-04-24 21:22 +1200
    Re: convertion frem char to double "aboudayosra@yahoo.fr" <aboudayosra@yahoo.fr> - 2012-04-24 02:53 -0700
      Re: convertion frem char to double Ian Collins <ian-news@hotmail.com> - 2012-04-24 22:13 +1200
    Re: convertion frem char to double "aboudayosra@yahoo.fr" <aboudayosra@yahoo.fr> - 2012-04-24 03:10 -0700

csiph-web