Posts by jose ricardo • 23 points
2 posts
-
1
votes1
answer255
viewsQ: Struct and matrix, how to relate?
I’m doing a code for a college paper and a question has arisen about how to assign values to a matrix of the type struct. struct posicao { int x; int y; }; struct posicao inimigo_val[5][15] = {…
-
0
votes2
answers57
viewsQ: Problem in a function parameter
#include <stdio.h> #include <stdlib.h> int pos_setinha(int x); void menu(int x); int main() {int x=0; do { menu(pos_setinha(x)); } while(1); } int pos_setinha(int x) { x=0; char C;…