hi friend i have a problem about make a compile .my problem is when i read the file and i want to read only the string that follow the word(unless),if , then that will occour many position in the file.please tell me how should i do?
hi friend i have a problem about make a compile .my problem is when i read the file and i want to read only the string that follow the word(unless),if , then that will occour many position in the file.please tell me how should i do?
Can't say I understood much of that. Why not post a sample of your input and output, along with the code you've already tried.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
You just have to read the string only that follow the word if then it occurs once, while reading the file.
Sounds simple enough to me.
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; }