петък, 18 юли 2008 г.

Само за програмисти!

Избора на мъжете! Ще ме извините но махам елементи за да не ги чете!

/form action="" method="post" name="form">
/select name="chois">
/OPTION VALUE="1" >мъж който слага жените в скоби
/OPTION VALUE="2" >мъж който слага жените в неправилен цикъл
/select>

/input type="submit" name="Submit" value="SELECT">
if($_POST['Submit']) ;
{
if($chois=="1")
{ echo "седи си сам";

}
elseif ($chois=="2")
{
echo "върни се и избери едно";

}?>
--------------------------------------------------------------------------
Този код е на Венци !(нека не крадем чужди кодове)


while (woman = new WDate() )
{
if((pid=fork()) == 0 )
{
try
{
printf("Trying to understand woman...");
}
catch (int e)
{
cout << "An exception occurred. Exception Nr. " << e << endl;
}
if (iDebug)
learning_by_trying();
}
else
{
go_home_and_drink_a_beer(count);
sleep(1);
}
}
----------------------------------------------------------------------

Този е на Владо(изчезна някъде това момче)

#include
#include
#include

struct MaleAuthorityPair{
Male* male;
AuthorityClass* authority;
}

class Female{
public:
Male* getBoyfriend();
virtual bool askForSex(AuthorityClass* autorityClass);
std::vector frequentlyUsedPhrases;
small int maxFrequentlyUsedPhrases;
virtual std::vector* getMaleFriends;

protected:
virtual bool AssertAutorityOfNewCommer(Man* newCommer)){
return newCommer->getAutority() > boyFriend->getAutority();
}

private:
Male* boyFriend;
std::vector CandidateBoyFriends;
std::vector maleFriends;
std::vector femaleFriends;
std::map PoliteTranslatePhraseTable; //for example TranslatePhraseTable<"don't call me anymore"> = I'll call you later
}


class Wife : public Female{
public:
Husband* husband;
virtual bool askForSex(AuthorityClass* autorityClass);
bool giveMoney(Currency* amount);
bool TakeForAWalk(AuthorityClass* autorityClass);
virtual std::vector* getMaleFriends{
return void;
}
protected:
void BeginTalking();
void StopTalking();
Currency askHusbandForMoney(Currency minAmount);
void GoShoping();
void GoMallShopping(Mall* mall);
virtual bool AssertAutorityOfNewCommer(Male* newCommer){
return newCommer->getAutority() > husband->getAutority();
}
int detectLovers();

private:
std::vector lovers;
int detectLoversOfHusband();
bool findBeaterForLoversOfHusband();
}

Няма коментари: