Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
because x is 3 + 0; (whole) this is the stupid text that will be inserted instead of x ;
x * x == 3 + 0 * 3 + 0 ;
we get
3 + ( 0 * 3 ) + 0;
3+0+0;
3;
Atavism
is sometimes useful
https://en.cppreference.com/w/cpp/preprocessor/replace
and so there is at least
https://en.cppreference.com/w/cpp/language/constexpr
https://en.cppreference .com/w/cpp/language/templates
#include <iostream>
template<typename T>
auto sqr = [](T x)
{
return x * x;
};
int main()
{
std::cout << sqr<int>(3 + 0);
}
//...
class __lambda_3_12
{
public: inline int operator()(int x) const
{
return x * x;
}
//...
};
//...
def get_hel(self):
return self.hels
It doesn't work because the called get_hel() method is trying to return a non-existent attribute self.get_hels
Most likely this is a typo and get_hel() should return self.hels
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question