since i've placed my post on the other blog i'll have to crap something out for this one.
that's right, i didn't crap yesterday. today i must, later i kek sai.
and i have to come up with an alibi for the 26th. looks like i'll have to wear the same jeans for 25th, 26th, and 29th. oh and thursday i have to go mshs to pick up my songs. i'll have to clear my thumbdrives before then.
so much more to rant, actually. but i have to eat first.
ok back.
ok i'm stupid, but i gotta say this.
heard of harry potter?
ron = shaun.
many brothers, one younger sister, huge family, not so well off.
hermione = jen
only child, girl (duh).
i've yet to find the 'harry' in my life.
i wonder in how many people's life is this fantasy played out.
Thinking of you MAPLE on Saturday, November 22, 2008
#define FULLNAME 10means, set the value of FULLNAME to 10
----------------
main(){means, the start. like start codon. like the green traffic lights in robolab. 'main()' means, the entire program la.
----------------
char full[FULLNAME];declare the variable 'full' as a character type. the [FULLNAME] is the postition of the characters.
----------------
printf("\nWhat is your first name?\n\n\n");basically, it prints "What is your first name?". '\n' means newline, which is what u get when u press the enter key.
----------------
scanf("%10s", &full);now it reads 10 characters which you type in. your're supposed to type in your name! and these are stored into the variable 'full'. kinda like containers in robolab, i guess.
----------------
if ((full[0] == 'n' || full[0] == 'N') && full[1] == 'i' && full[2] == 'c') {printf("\n\nHello %s, you are good. Bye!\n\n", full);} now the program reads what you've typed in. if the first letter, full[0], is 'n' or 'N', and the second letter, full[1] is 'i', and the third letter, full[2] is c, it will print "Hello (what you typed in), you are good. Bye!
lets say i typed in "nicholas", the first, second, and third letter all match, so it will print "Hello nicholas, you are good. Bye!"
----------------
else {printf("\n\nHello %s, you are noob. Bye!\n\n", full);}if they don't match, like i type in "kim", it will print "Hello kim, you are noob. Bye!"
----------------
}this is the end codon. the red traffic light. it's the end of the program.
Thinking of you MAPLE on Saturday, November 22, 2008
#define FULLNAME 10
main()
{
char full[FULLNAME];
printf("\nWhat is your first name?\n\n\n");
scanf("%10s", &full);
if (
(full[0] == 'n' || full[0] == 'N') && full[1] == 'i' && full[2] == 'c'
)
{
printf("\n\nHello %s, you are good. Bye!\n\n", full);
}
else
{
printf("\n\nHello %s, you are noob. Bye!\n\n", full);
}
}
Thinking of you MAPLE on Saturday, November 22, 2008