Saturday, November 30, 2002

hallelujah.

happy chanukah, to all who care. it's the second day of it. since the sun's set and all. but, i just got my present from bubbi. bubbi = grandma, just so you know. but, i got a $25 gift certificate for borders. really, the best thing about hanukah (i have different spellings of it, don't mind me) is that it's before christmas, so you get your present(s) earlier. yay. um, yeah.

well... um...

shalom.

there. i'm done.
current mp3: belle and sebastian - belle and sebastian don't mind that my current mp3 changes so much... i don't know why i put it up there even, really. it's really just the mp3 i'm listening to when i start my blog. it does kinda affect my mood though, because music affects my mood. not the other way around, in case you were thinking i put the mp3 up there that best corresponded to my mood. but NEVERMIND. oh, but i seem to have lost one of my paul simon albums. aaargh. because, i have this one cd, "negotiations and love songs", which has 'diamonds on the soles of her shoes' on it. and i wanted to listen to that, cuz apparently it says something about "bodegas" in it, but i don't remember. it's ok though. mebbe i should get an actual album of his. see, that one is a compilation cd, and i have this "thing" about buying best-of albums. they annoy me. but yeah... it's weird, because i bought the blur best of (mostly for the live cd and the three tracks i didn't own, and because nikki had it and i didn't...) and i have the u2 best of (but then i don't really love them anyway) and john lennon solo work best of (but my mum bought that anyway, and i seem to have lost it) ... but yeah. and i need to buy more actual albums. it's a funny thing though, i pride myself on the fact that i don't own any singles. why that's something to be proud of, i don't rightly know. it's ok. oh, i'm gonna look up aichi ka nai wa... be right back... ok, this is what i got from babelfish: As for meeting chi serving. how very strange.
current mp3: sleep together - garbage

eh. wow. i'm really starting to hate this history packet. it's 60 pages of reading. blech. so i did the reading but the trouble is i don't get any credit unless i answer the questions. bloody hell. you mean i have to go back through the packet?!

i've been working on my website and i'm already bored. and i wonder why i never put up websites.

but now i think i'll go through my program for comp sci and figure out what's wrong with it. it's supposed to output a calendar for the year. here, i'll even put up what i have so far, just for your especial enjoyment:

// this program is supposed to take the year
// and the day of the week of jan. 1, and print
// a calendar for the year

#include <iostream>
#include <string>    // for stuff using strings
#include <iomanip>   // for formatting

using namespace std;

void Calendar (int, int, string, int&);

int main()
{
   int day;
   int year;

   int jan = 31;
   int feb = 28;
   int mar = 31;
   int apr = 30;
   int may = 31;
   int jun = 30;
   int jul = 31;
   int aug = 31;
   int sep = 30;
   int oct = 31;
   int nov = 30;
   int dec = 31;

   int nextday;

   cout << "What day of the week is January 1st on? (1 for Sunday, 2 for Monday, etc.) ";
   cin >> day;

   cout << "What year is it? ";
   cin >> year;

   if ( (year % 4) == 0 )
      feb++;

   Calendar (jan, day, "January", nextday);
   Calendar (feb, nextday, "February", nextday);
   Calendar (mar, nextday, "March", nextday);
   Calendar (apr, nextday, "April", nextday);
   Calendar (may, nextday, "May", nextday);
   Calendar (jun, nextday, "June", nextday);
   Calendar (jul, nextday, "July", nextday);
   Calendar (aug, nextday, "August", nextday);
   Calendar (sep, nextday, "September", nextday);
   Calendar (oct, nextday, "October", nextday);
   Calendar (nov, nextday, "November", nextday);
   Calendar (dec, nextday, "December", nextday);

   return 0;
}

void Calendar (int num, int day, string month, int& nextday)
{
   cout << month << endl;
   cout << "----------" << endl;
   cout << " S  M  T  W  T  F  S " << endl;

   int count = 1;

   while (num >= count)
   {
      // placeholders:
      if (day == 7)
         cout << "  .  .  .  .  .  . "; // six day spaces
      else if (day == 6)
         cout << "  .  .  .  .  . "; // five day spaces
      else if (day == 5)
         cout << "  .  .  .  . "; // four day spaces
      else if (day == 4)
         cout << "  .  .  . "; // three day spaces
      else if (day == 3)
         cout << "  .  . "; // two day spaces
      else if (day == 2)
         cout << "  . "; // one day space

      while (day <= 7 && num >= count)
      {
         cout << setw(2) << count << " ";
         count++;
         day++;
      }

      if (num < count)
      {
         if (day <= 7)
            nextday = day;
         else if (day == 8)
            nextday = 1;
      }

      cout << endl;
      day = 1;
   }

   cout << endl;
}

oh, wait... um, i already found a bug and fixed it. but yeah. so, maybe it works now. aargh. it's ok, at least i found an error. and if anybody else finds another error, then hey! that's even better. i guess.

eh. anyways...

Friday, November 29, 2002

*yawn* off to bed.
" # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ € ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ Ž ‘ ’ “ ” • – — ˜ ™ š › œ ž Ÿ   ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ­ ® ¯ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Ā ā Ă ă Ą ą Ć ć Ĉ ĉ Ċ ċ Č č Ď ď Đ đ Ē ē Ĕ ĕ Ė ė Ę ę Ě ě Ĝ ĝ Ğ ğ Ġ ġ Ģ ģ Ĥ ĥ Ĩ ĩ Ī ī Ĭ ĭ Į į İ Ĵ ĵ Ķ ķ Ĺ ĺ Ļ ļ Ľ ľ Ń ń Ņ ņ Ň ň ʼn Ŋ ŋ Ō ō Ŏ ŏ Ő ő Œ œ Ŕ ŕ Ŗ ŗ Ř ř Ś ś Ŝ