הי, עוד שאלה:

Nי cוני

New member
הי, עוד שאלה:

#include <stdio.h> void get_matrix(short a[][] ); void main() { short adjacency_matrix [10][10],order; printf ("Enter the size of the adjacency matrix:\n"); scanf ("%d",&order); if (order>=1&&order<=10) { printf ("ok\n"); get_matrix (adjacency_matrix); } else printf ("Wrong value, you should enter a value between 1 to 10\n"); } void get_matrix(short a[][]) { printf ("Enter the elements of symmetric zero-diagonal binary matrix:"); } למה זה לא מתקמפל?
 

selalerer

New member
אין טיפוס כזה [][]shot a חייב להיות

מספר בסוגריים המרובעים השניים.
 
למעלה