[e]thaN

Month

October 2010

Oct 31, 20101 note
#league of legends #lol
Oct 27, 2010
#league of legends
Oct 20, 2010
#league of legends
Play
3:22
Oct 19, 2010437 notes
I ask my C++ teacher for help on understanding logic of an array of pointers that stem off in a dynamically created linked list
  • Me: So, here's what I have, I have a linked list. How do I change this logic to an array of blahblahblah
  • Teacher: Well it's easy, blahblahblahblahblah
  • Me: Wait, I don't understand, can you explain what is stored here?
  • Teacher: It's a pointer and blahblahblahblah
  • Me: WUT
  • Teacher: itz okay to be confused
  • Me: Oh, no, I get it now, thank you very much
  • Teacher: Feel free to ask anytime, man
  • *I walk away*
  • Me: Yeah, I understand now: I ain't fuckin doin this program.
Oct 18, 2010
#personal
Play
Oct 17, 2010
#britney spears #hot guy
“get at me bro” —12 year old Xin Zhao from League of Legends
Oct 17, 20101 note
#league of legends
My C++ Midterm

#include <iostream>
#include <fstream>
#include <bitset>
using namespace std;

void getCharacters(char charSuccess[27])
{
  ifstream fin;
  fin.open(“Success.txt”);
  char fileChar;
  int fileCharacterCount = 0;

  while (fin.get(fileChar))
  {
   charSuccess[fileCharacterCount] = fileChar;
   fileCharacterCount++;
  }

  fin.close();
}

void getASCII(char charSuccess[27], int asciiSuccess[27])
{
  for (int i=0; i < 28; i++)
  {
   asciiSuccess[i] = int(charSuccess[i]);
  }
}

void getBinary(char charSuccess[27], char binarySuccess[8][100]) 
{ 
  int check; 
  for(int j = 0; j < 28; j++)
  {
   for(int i = 7;i>=0;i—) 
   { 
    check = 1 « i; 
    if ((charSuccess[j] & check)==0)
    {
     binarySuccess[i][j] = ‘0’;
    }
    else
    {
     binarySuccess[i][j] = ‘1’;
    }
   } 
  } 
}

void getMessage (int asciiSuccess[27], char Print[27])
{
  for (int i=0; i < 28; i++)
  {
    Print[i] = static_cast<int>(asciiSuccess[i]);
  }
}

void getMemory (char binarySuccess[8][100], bool Memory[8][100])
{
  for (int j = 0; j < 28; j++)
  {
   for (int i = 7; i >= 0; i—)
   {
    if (binarySuccess[i][j] == ‘0’) Memory[i][j] = false;
    if (binarySuccess[i][j] == ‘1’) Memory[i][j] = true;
   }
  }
}

void printOutMessage (char Print[27])
{
  for (int i = 0; i < 28; i++)
  {
   cout « Print[i];
  }
}

void printOutMemory (bool Memory[8][100])
{
  for(int j = 0; j < 28; j++)
  {
   for(int i = 7;i>=0;i—) 
   { 
    if (Memory[i][j] == false) cout « ‘0’;
    if (Memory[i][j] == true) cout « ‘1’;
   } 
   cout « endl;
  } 
}

int main ()
{
  cout « endl;
  char charSuccess[27];
  int asciiSuccess[27];
  char binarySuccess[8][100];
  bool Memory[8][100];
  char Print[27];

// Reads each character from the file “Success.txt”; stores to the charSuccess array
  getCharacters(charSuccess);

// Stores the ASCII value of each character from charSuccess array to the asciiSuccess array
  getASCII(charSuccess,asciiSuccess);

// Verifies stored characters; converts asciiSuccess array back to characters in the character Print array
  getMessage(asciiSuccess,Print);

// Converts each stored character in charSuccess to its binary value, stored in binarySuccess[8][100]
  getBinary(Print,binarySuccess);

// Converts each 0 and 1, from binarySuccess, to a boolean value, stored in Memory[8][100]
  getMemory(binarySuccess, Memory);

// Prints out the Memory
  printOutMemory(Memory);
  cout « endl;

// Prints out the stored message from memory
  printOutMessage(Print);
  cout « endl;

  return 0;
}

Oct 13, 2010
#c++ #comsc265
Oct 12, 2010
#league of legends #lol #sona #fail
My last hours as a teenager (19)
  • Diagas: well itz
  • Diagas: my fuqqin
  • Diagas: birthday
  • Diagas: in 5 hours
  • Diagas: wtf
  • Majora65: OMGGGG
  • Diagas: i ned to
  • Diagas: spend my
  • Diagas: last hours
  • Diagas: as a teenager
  • Diagas: dying to
  • Diagas: 12 year olds
  • Diagas: my fellow
  • Diagas: teens
  • Majora65: K!
  • Majora65: LOL!
Oct 10, 2010
#personal
Oct 5, 2010
Oct 4, 2010
#league of legends
The perfect example of a boolean function

bool whoIsIt (string person)
{
  bool results = false;
  if (person == “youknowhoyouare”) results = true;
  return results;
}

int main ()
{
  string person = “youknowhoyouare”;
  if ((whoIsIt(person))) cout « “FUCK YOUUUUUUUUUU”;
  return 0;
}

Oct 3, 20101 note
#c++ #rage #boolean
Oct 3, 201021 notes
#luigi #soda #mario #uc davis
Next page →
2012 2013
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2011 2012 2013
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2010 2011 2012
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2009 2010 2011
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2008 2009 2010
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2007 2008 2009
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2006 2007 2008
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2005 2006 2007
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2005 2006
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December