Kaip įsišauti į koją su atitinkama programavimo kalba?
Idėjiškai kaip įsišauti į koją su kokia nors programavimo kalba? Žemiau pateikiu kelis pavyzdukus, o toliau galite pasiskaityti orginale
Keli pavyzdžiukai:
C
You shoot yourself in the foot.
PHP
You shoot yourself in the foot with a gun made with pieces from 300 other guns.
SQL
SELECT @ammo:=bullet FROM gun WHERE trigger = ‘PULLED’;
INSERT INTO leg (foot) VALUES (@ammo);
// main.cpp
//——————————————————–
// Open source universal leg's destroying system!
// hardcoded by radioman, radioman@gawab.com.
// Probably with syntax error ;} All rights reserved. (C).
// Do it for fun ;}}}}
//——————————————————–
// destroyable thing
struct Gun
{
virtual ~Gun() {};
virtual MakeShoot(int power, bool auto) = 0;
};
// gun implementation
struct Kalasnikov : public Gun
{
~Kalasnikov() { delete this; }
// our gun shoot
MakeShoot(int power, bool auto)
{
cout bool Shoot(int power, bool auto)
{
T->MakeShoot();
}
// take action!
void main()
{
Gun test = new Kalasnikov();
if( Shoot (90, true) )
{
cout
system infected insucsessfull.. ;{