Can anyone help me out with a calendar countdown?

edited May 2015 in How To...

Hello to everyone, Im quite new to programming and I had this Idea of making a countdown for the finals. Anyways I am not sure which commands to use for the months and how to separate the ones who have 31 days from the ones with 30. I am ignoring the leap year and this is the code that I have by now:

/counts day to finals/

  • int month;
  • int jan;
  • int feb;
  • int mar;
  • int apr;
  • int may;
  • int jun;
  • int jul;
  • int ago;
  • int sep;
  • int okt;
  • int nov;
  • int dez;
  • int day;
  • int year;
  • int date;
  • int n;
  • month = jan, feb, mar, apr, may, jun, jul, ago,sep, okt, nov, dez;
  • date= day,month,year;
  • day= n;

n= (1,...,31);

void setup(){

size(600,800);

fill(255);

}

void draw(){

if (1< day <31){

true (jan,may, jul,ago, okt, dez)

}

}


The way to organize the month is very uncomfortable, please community help me out with this!! :) I dont know how I shold do it...

Answers

Sign In or Register to comment.