Geekiness

Apr. 6th, 2005 12:03 am
kyrasantae: (Default)
[personal profile] kyrasantae
Jakub on the Quotient rule: "Bombs differentiate people. So when a bomb hits a building, the people on the top floor are differentiated first, followed by the people on the second floor. But the air siren's gone off so there are more people in the basement, so you square it."

Jakub on the Universe: "The square root of everything is 42. The square root of the universe is 42...[livejournal.com profile] forgottenlord's IQ is 42!"

Henry asked me what my program choices for next year were. At the time I was helping Marc out with his programming assignment. As a result, this was my answer for Henry:
#include <iostream>

using namespace std;

struct List
{
	int n;
	string discipline;
	string program;
};

const int NUMBEROFCHOICES=8;

int main ()
{
	List choices[NUMBEROFCHOICES];
	int counter=0;
	
	cout<<"\[kyrasantae\]'s Program Selections\n(Damn I'm good! I can write a program!)" << endl << endl;
	
	for (counter=1; counter<=NUMBEROFCHOICES; counter++)
		{
			choices[counter-1].n = counter;
			if (counter>0 && counter <=4)
				choices[counter-1].program = " Co-Op";
			else
				choices[counter-1].program = " Traditional";
			switch(counter)
			{
				case 1:
				case 5: choices[counter-1].discipline = " Materials";
						break;
				case 2:
				case 6:	choices[counter-1].discipline = " Mining";
						break;
				case 3:
				case 7: choices[counter-1].discipline = " Electrical";
						break;
				default:choices[counter-1].discipline = " Chemical";
			}
			cout << choices[counter-1].n << choices[counter-1].discipline << choices[counter-1].program << endl;
		}
		
	return 0;
}


Hmmm...this CD case is so CranePorn orgasmic [back]. And shiny [front].
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

kyrasantae: (Default)
kyrasantae

July 2013

S M T W T F S
 1234 56
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 22nd, 2026 01:30 pm
Powered by Dreamwidth Studios