Jump to content

[Concurs C++ #1] Voidul 'main' este in vacanta !


zek
 Share

Recommended Posts

Se cere scrierea unui program in care voidul 'main' sa fie inexistent sau { }( gol ). Mai pe scurt voidul main sa nu detina nici o influenta.

In schimb, programul trebuie sa indeplineasca o simpla cerinta : Sa afiseze textul : "B-Zone Best", tinand cont de regula cu voidul main de mai sus.

 

 

Succes !

 

Locul 1:

Locul 2:

Locul 3:

Link to comment
Share on other sites

#include<stdio.h>
#include<iostream>

#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)

int begin()

{
std::cout<<"B-Zone Best";
}

 

Sa zicem ca e oarecum ok dar tu nu ai facut decat sa maschezi voidul main( prin codificare sa ii dai alt nume .. ).

Se poate si fara asa ceva. Pur si simplu fara main.

 

Hint : Constructiile de case au crescut cu 5 % in anul 2013.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.