convertion frem char to double

A

aboudayosra

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;
NS_LOG_UNCOND (" SNRTAG :" <<csT.Get());

can anyone help me please
 
I

Ian Collins

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?
 
A

aboudayosra

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.
 
A

aboudayosra

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 the
requested message unconditionaly.
 
I

Ian Collins

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".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top