C/C++: Exemple d’ajout des valeurs dans une matrice

Author:


Download


#define MAX_LIGNE 60
#define MAX_COLONNE 30

int main()
{
    int matrix[MAX_LIGNE][MAX_COLONNE];
    int x,y;
    for (x = 0; x < MAX_LIGNE; ++x)
	{
        for (y = 0; y < MAX_COLONNE; ++y)
		{
            matrix[x][y] = 0;
        }
    }

    return (0);
}

Leave a Reply

Your email address will not be published. Required fields are marked *