Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int dia;
- private int mes;
- private int ano;
- public bool GravaData(int d, int m, int a)
- {
- if ((d > 0 && d <= 31) && (m > 0 && m <= 12) && (ano > 0))
- {
- dia = d;
- mes = m;
- ano = a;
- return true;
- }
- else
- {
- return false;
- }
- }
Add Comment
Please, Sign In to add comment