hi to all
how could I use a mathematical operation on in c++. thats always bather me because i need it in my program. pls. help me.
ferdz13 0 Newbie Poster
Recommended Answers
Jump to Postin c++, ^ is the bitwise exclusive OR operator.
to raise an integer to a power, usestd::pow
(#include <cmath>
)
eg:double result = std::pow( double(3), 3 ) ;
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.