Files
2026-02-21 10:47:00 +07:00

56 lines
2.9 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#include "func.h"
void helpMenu(void){
clear();
printf("Command [alias] - what it does.\n\n");
printf("\thelp [h] - Show this info.\n\n");
printf("\tshow [c] - Show the 2d array\n\n");
printf("\tset [s] - Show all methods to fill the 2d array.\n");
printf("\tset* [s*] - Choose how to fill the 2d array\n\n");
printf("\tfunc [f] - Show all functions\n");
printf("\tfunc* [f*] - Choose a function.\n\n");
printf("\texit [q] - Quite the program.\n\n\n");
}
void setMenu(void){
clear();
printf("Fill 2d massive methods\n");
printf("\t [1] - Rowwise lefttoright input.\n");
printf("\t [2] - Rowwise righttoleft input.\n\n");
printf("\t *[3] - Columnwise toptobottom input.\n");
printf("\t [4] - Columnwise bottomtotop input.\n\n");
printf("\t [5] - Spiral from outer edge toward centre.\n");
printf("\t [6] - Spiral from centre outward.\n\n");
printf("\t [7] - Diagonal input starting at bottomleft corner.\n");
printf("\t [8] - Diagonal input starting at topright corner.\n");
printf("\t [9] - Diagonal input starting at topleft corner.\n");
printf("\t[10] - Diagonal input starting at bottomright corner.\n\n\n");
}
void funcMenu(void){
clear();
printf("Functions\n");
printf("\t [1] - Find the maximum and minimum elements of the matrix.\n");
printf("\t [2] - Find the maximum value in each row and in each column of the matrix.\n\n");
printf("List elements\n");
printf("\t [3] - ... whose values are greater than a given k.\n");
printf("\t [4] - ... whose values are less than a given k.\n");
printf("\t [5] - ... greater than k in columns m through l.\n");
printf("\t [6] - ... greater than k in rows m through l.\n");
printf("\t [7] - ... less than k in columns m through l.\n");
printf("\t [8] - ... less than k in rows m through l.\n");
printf("\t [9] - ... whose values lie between the matrix's minimum and maximum values.\n");
printf("\t*[10] - ... that are multiples of the entered number k\n\t\t(k < matrix max; also display the matrix's maximum value).\n\n");
printf("Compute the sum of\n");
printf("\t[11] - ... all even elements of the matrix.\n");
printf("\t[12] - ... odd elements of the matrix.\n");
printf("\t[13] - ... elements that are multiples of k.\n");
printf("\t[14] - ... elements in evenindexed columns of the matrix.\n");
printf("\t[15] - ... elements in oddindexed columns of the matrix.\n");
printf("\t*[16] - ... elements in evenindexed rows of the matrix.\n");
printf("\t[17] - ... elements in oddindexed rows of the matrix.\n");
printf("\t[18] - ... elements on and above the main diagonal (inclusive).\n");
printf("\t[19] - ... elements on and below the main diagonal (inclusive).\n");
printf("\t[20] - ... elements on both the main and secondary diagonals of the matrix.\n\n\n");
}