Posts by João Verçosa • 84 points
4 posts
-
1
votes1
answer38
viewsQ: How to pass a list of pointers that references functions as a parameter
I have a list of pointers that refer to functions in my code and I need to pass this list as a parameter to a function that prints the cases: double f00(double x){ ... return x; } double f01(double…
-
1
votes1
answer36
viewsA: How to make Speechrecognition listen to system sounds (youtube, zoom, etc.) instead of the microphone?
Hello! Try changing the variable value input_device_index. When you create the variable stream, you are passing several parameters to Pyaudio, this variable is responsible for selecting from which…
pythonanswered João Verçosa 84 -
1
votes1
answer54
viewsA: python, list logic - remove item
As Felipe warned in the question comment, this error is happening after you start the match when the player selects the option '1'. At this point you draw a random number between [0,11] with the…
-
3
votes3
answers40
viewsQ: How to turn a 2D Array into 2D Pointer in C
It is possible for a function to receive as a parameter a reference to the address of a two-dimensional array (matrix) static, and from the pointer to access the elements of this matrix. In the…