Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // En profesor, una vez que empieza el tema de las peticiones y los ruegos
- int noQuierenPreguntar=0;
- int estanSatisfechos=0;
- while((noQuierenPreguntar+estanSatisfechos)<20)
- {
- blockingReceive(/* Mensaje de alumno */)
- if(/* Contenido del mensaje == "noPreguntoMas" */) noQuierenPreguntar++;
- if(/* Contenido del mensaje == "conforme" */) estanSatisfechos++;
- if(/* En el contenido del mensaje se dice algo tipo "el alumno x se cambia por el alumno z") // Cambio a los 2 alumnos de grupo en mi tabla
- }
- noQuierenPreguntar=0;
- estanSatisfechos=0;
- while((noQuierenPreguntar+estanSatisfechos)<20)
- {
- blockingReceive(/* Mensaje de alumno */)
- if(/* Contenido del mensaje == "noPreguntoMas" */) noQuierenPreguntar++;
- if(/* Contenido del mensaje == "conforme" */) estanSatisfechos++;
- if(/* En el contenido del mensaje se dice algo tipo "el alumno x se cambia por el alumno z") // Cambio a los 2 alumnos de grupo en mi tabla
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement