no es "qué funcion puede reemplazar a goto XD es reemplazarlo con una función XD
es decir
#include<stdio.h>
using namespace std;
int menu() {
int OP;
char M; // VARIABLES DE MENU
int N, A, SN, MN = 1; //VARIABLES DE LA FUNCION 1
///*******el resto de tu codigo***************/
do {
printf("\n\n\n\tRETORNAR AL MENU: 1 = SI o 0 = NO , PARA FINALIZAR: ");
fflush(stdin);//limpiar buffer
scanf("%c", &M); //
if (M == '1') //
{
printf("\n\n");
return 1;
} else if (M == '0') {
return 0;
}
} while (M < '0' || M > '1');
}
int main() {
while (menu() == 1);
return 0;
}