Posts by Rafael Machado • 13 points
2 posts
-
0
votes0
answers176
viewsQ: I am using the Opengl lib, but in the compilation gcc is returned indefinite reference, could anyone help?
#include <GL/gl.h> #include <GL/glut.h> void reshape(int w, int h) { glViewport(0, 0, w, h); /* Establish viewing area to cover entire window.…
-
1
votes1
answer115
viewsQ: Division does not generate the expected result
When I do the division of mul / total_filhos_mul the variable mul is zeroed, if I don’t make this division she gets the correct value. What may be happening? #include <stdio.h> int main(){ int…