umm what i wrote was for stringLen
is that not correct either?
i can not add or modify main at all.
umm what i wrote was for stringLen
is that not correct either?
i can not add or modify main at all.
so is the what you mean itCbitC
//code
stringLen(char *pWord)
{
int count
count=0;
while
++pWord;
++count;
return;
>> so is the what you mean itCbitC
Why don't you compile it and see for yourself?
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
i compiled it but it gave me token error.
when it says token error whats it mean?
>> when it says token error whats it mean?
It means the compiler encountered an 'unexpected' character sequence. The easiest way to go about this is to strip everything down until you have something that compiles. First write a function that does nothing. Return a default value. If that compiles, try to set up an empty loop. If that compiles, add a bit of code little by little, compiling and printing values after every change. That's the basic idea, anyway. And above all, find good books, or online tutorials, and read them over and over until you actually understand the syntax, before actually attempting to write code.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }