Posts by Felipe Moura • 3 points
3 posts
-
0
votes0
answers56
viewsQ: What is the application of the concept of pointers for functions?
I would like a practical example for the use of pointer to function as well as a function having as one of the parameters a pointer pointing to a function; it is not necessary to show some code, I…
-
0
votes1
answer38
viewsQ: Variable is not found in an operator method
I’m studying operator overload but my code is not compiling. #include <iostream> using namespace std; class Complexo { public: int real, image; Complexo(); Complexo(int r, int i); Complexo…
-
0
votes0
answers49
viewsQ: Rand generating equal numbers
I have to do a program that generates random numbers for X1 and x2 and perform the operation F = X1*X1 + x2*x2; but I will repeat this 10 times and I will keep the lower value of F; then I will…