Showing posts with label programare. Show all posts
Showing posts with label programare. Show all posts

Wednesday, December 23, 2009

Colinde


#include <colinde.h>
#include <list.h>
#include <months.h>

int main( void )
{
   List<Colinde> * colinde = new List<Colinde>();
   colinde->add("deschide usa, crestine");
   colinde->add("colindul cerbului");
   colinde->add("ce-ati vazut pastori");
   colinde->add("o, ce veste minunata");
   colinde->add("la vifleem colo-n jos");
   colinde->add("colo-n sus si mai in sus");
   colinde->add("la savarsitu lumii");
   colinde->add("colinda-ne doamne");

   return Colinde :: DeployColinde(24, Months::December, colinde);
}

Later Edit: De când cu C# ăsta, nu mai știu să programez în c++. Am dat de mai multe ori edit, și fir-ar <-urile că trebuie să scriu &lt;

Tuesday, November 24, 2009

Banc :D

Am dat de bancu' asta undeva pe un site. 'tis funny.

Two strings walk into a bar.

"What'll it be, fellas?" the Bartender asks.

"I'll have a beer" the first string replies.

"Same for me.0gh8lujhil%" says the second string.

"What was that?" asks the bartender.

The first replies "Pardon my friend, he's not null terminated"

Wednesday, September 2, 2009

The Two Rules Of Pointers

Rules of Pointers:

  1. Pointers are only fluffy when you make them fluffy.
  2. If pointers are cuddly, they are no pointers. It is up to you to find out what they are.

[ Acest post este cu dedicatie pentru Ade. ]

LE: Fluffy pointers

Declaratie:

fluffy int * nume_pointer;
nume_pointer = fluffy new int;

Thursday, March 19, 2009

lolcode

In ultimu' timp, mi-am pierdut cateva ore cu site-ul www.lolcode.com! O metoda interesanta de a pierde timpul pentru diversi programatori care vor sa vada cat de departe poate ajunge plictiseala omului, incat unii chiar fac programe in acel limbaj!

HAI
CAN HAS STDIO?
IM IN YR LOOP UPPIN YR VAR TIL BOTHSAEM VAR AN 10
  VISIBLE SUM OF VAR AN 1
IM OUTTA YR LOOP
KTHXBYE

Sa vedeti cand ma plictisesc eu si incep sa creez Pingucode.