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.

Could you be more specific? I take it you know how to say, write an expression that computes the sum of two integers in C++. Which mathematical operation do you want to use? Why can't you use it?

the mathematical operation is this ^.for example 3^3=27 but is not working.

in c++, ^ is the bitwise exclusive OR operator.
to raise an integer to a power, use std::pow ( #include <cmath> )
eg: double result = std::pow( double(3), 3 ) ;

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.