RSS
Âû íå çàðåãèñòðèðîâàíû Ðåãèñòðàöèÿ | Ïîèñê | Âîéòè

Îáùåíèå ìóçûêàíòîâ Ñàíêò-Ïåòåðáóðãà

Çàäàòü íîâóþ òåìó

Äàííûé ôîðóì "Ñ.Ïåòåðáóðã - òóñîâêà ìóçûêàíòîâ" òåïåðü íå ïðåäíàçíà÷åí äëÿ ñîîáùåíèé òèïà êóïëþ-ïðîäàì.
Âñå ñîîáùåíèÿ "êóïëþ-ïðîäàì" áóäóò óäàëÿòüñÿ ñ äàííîãî ôîðóìà áåç ïðåäóïðåæäåíèÿ.
Äëÿ ñîîáùåíèé êóïëþ-ïðîäàì òåïåðü îòêðûò íîâûé ôîðóì - "Ñ.Ïåòåðáóðã: êóïëþ-ïðîäàì"
Àâòîð
Òåìà: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 18:34 



[center][img]http://img153.imageshack.us/img153/319/03may07164944lh1.jpg[/img][/center]

[b] Exclusive set!!![/b]
[center]Âíèìàíèå!!! [b]16 ìàÿ (ñðåäà)[/b], ãðóïïà ñûãðàåò êîðîòêèé ñåò íà ôåñòèâàëå "Summer Soon Fest" â íåèçâåòíîì, äëÿ íàñ, [b]Ðîêñ êëóáå[/b].Ìû âûéäåì íà ñöåíó îêîëî [b]22-00[/b].Âñå ïàðòèè ãèòàðû áóäåò èñïîëíÿòü [b]Drew[/b][/center]
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 18:36 
Æèðíûé
Óáëþäàê

ïðîãðàììèñò éîïòà :lool:
ïðè ïîæàðå âîðóé óáèâàé åáè ãóñåé æäè îòâåòíîãî ãóäêà

- Áàáóøêà, à ÿ ëåòàë
- Çíà÷èò òû óæå 70-é óðîâåíü, âíó÷åê
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 18:36 
Æèðíûé
Óáëþäàê

íèïàéäó
ïðè ïîæàðå âîðóé óáèâàé åáè ãóñåé æäè îòâåòíîãî ãóäêà

- Áàáóøêà, à ÿ ëåòàë
- Çíà÷èò òû óæå 70-é óðîâåíü, âíó÷åê
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 18:43 



GaBang, ëîøîã, õòìë-òýãè :flag:
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 19:00 
ÑÏá, Òðè Ïóëè
Áàðàáàíû

GaBang, íàñìåøèë :lool:
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 19:03 
Æèðíûé
Óáëþäàê

îí íàâåðíî òàê îáëàæàëñÿ ÷òî ïîø¸ë è ñðàçó ïîâåñèëñÿ ##### =)))
ïðè ïîæàðå âîðóé óáèâàé åáè ãóñåé æäè îòâåòíîãî ãóäêà

- Áàáóøêà, à ÿ ëåòàë
- Çíà÷èò òû óæå 70-é óðîâåíü, âíó÷åê
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 19:07 
ÑÏá, Òðè Ïóëè
Áàðàáàíû

áåäíÿæêà... :sm2:
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 19:17 



#include
#include
#include
#include
#include

//////////////////////////////////////////////
//////////////////////////////
using namespace std;
using namespace boost::spirit;

////////////////////////////////
////////////////////////////////////////////
//

// Semantic actions
//
/////////////////////////////////////
///////////////////////////////////////
struct
// push_int
{
push_int(stack& eval_)
: eval(eval_) {}

void operator()(char const* str, char const* /*end*/) const
{
long n = strtol(str, 0, 10);
eval.push(n);
cout << "push\t" << long(n) << endl;
}

stack& eval;
};

template
struct do_op
{
do_op(op const& the_op, stack& eval_)
: m_op(the_op), eval(eval_) {}

void operator()(char const*, char const*) const
{
long rhs = eval.top();
eval.pop();
long lhs = eval.top();
eval.pop();

cout << "popped " << lhs << " and " << rhs << " from the stack. ";
cout << "pushing " << m_op(lhs, rhs) << " onto the stack.\n";
eval.push(m_op(lhs, rhs));
}

op m_op;
stack& eval;
};

template
do_op
make_op(op const& the_op, stack& eval)
{
return do_op(the_op, eval);
}

struct do_negate
{
do_negate(stack& eval_)
: eval(eval_) {}

void operator()(char const*, char const*) const
{
long lhs = eval.top();
eval.pop();

cout << "popped " << lhs << " from the stack. ";
cout << "pushing " << -lhs << " onto the stack.\n";
eval.push(-lhs);
}

stack& eval;
};

/////////////////////////////////////
///////////////////////////////////////
//
//
// Our calculator grammar
//
/////////////////////////////////////
///////////////////////////////////////
struct
// calculator : public grammar
{
calculator(stack& eval_)
: eval(eval_) {}

template
struct definition
{
definition(calculator const& self)
{
integer =
lexeme_d[ (+digit_p)[push_int(self.eval)] ]
;

factor =
integer
| '(' >> expression >> ')'
| ('-' >> factor)[do_negate(self.eval)]
| ('+' >> factor)
;

term =
factor
>> *( ('*' >> factor)[make_op(multiplies(), self.eval)]
| ('/' >> factor)[make_op(divides(), self.eval)]
)
;

expression =
term
>> *( ('+' >> term)[make_op(plus(), self.eval)]
| ('-' >> term)[make_op(minus(), self.eval)]
)
;
}

rule expression, term, factor, integer;
rule const&
start() const { return expression; }
};

stack& eval;
};

/////////////////////////////////////
///////////////////////////////////////
//
//
// Main program
//
/////////////////////////////////////
///////////////////////////////////////
int
main
()
{
cout << "/////////////////////////////////////////////////
////////\n\n";

()
{
cout << "\t\tThe simplest working calculator...\n\n";
cout << "/////////////////////////////////////////////////
////////\n\n";

()
{
cout << "Type an expression...or [q or Q] to quit\n\n";

stack eval;
calculator calc(eval); // Our parser

string str;
while (getline(cin, str))
{
if (str.empty() || str[0] == 'q' || str[0] == 'Q')
break;

parse_info<> info = parse(str.c_str(), calc, space_p);

if (info.full)
{
cout << "-------------------------\\n";
cout << "Parsing succeeded\\n";
cout << "-------------------------\\n";
}
else
{
cout << "-------------------------\\n";
cout << "Parsing failed\\n";
cout << "stopped at: \": " << info.stop << "\"\\n";
cout << "-------------------------\\n";
}
}
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 19:56 
Ïèòåð


"â íåèçâåòíîì, äëÿ íàñ, [b]Ðîêñ êëóáå[/b]."
Øîçà Ðîêñ êëóá òàêîé âíàòóðå? Êòî-íèòü çíàåò? :what:
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 20:06 



>"â íåèçâåòíîì, äëÿ íàñ, [b]Ðîêñ êëóáå[/b]."
>Øîçà Ðîêñ êëóá òàêîé âíàòóðå? Êòî-íèòü çíàåò?
Óàõàõàõà ))) ß íàäåþñü òû øóòèøü?

P.S. Åñëè âñåæå íåò - âîò òåáå:
http://www.roksclub.com/
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 20:08 



Òàê è íå ïîíÿë, êòî âûñòóïàåò?! :smiley7:
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 20:11 



Ñóäÿ ïî âñåìó - îí

Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 20:11 
ÑÏá, Òðè Ïóëè
Áàðàáàíû

ìäìà, êàëüêóòòà è äîõèðà åùå êîãî.
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 20:12 



>Ñóäÿ ïî âñåìó - îí
À êòî ýòî ?
 Áàíêå ñïåðìû çà îäíó ïîðöèþ äàþò 1000 ðóáëåé
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 20:13 



à, òî÷íà, Ñàí÷åç ãîâîðèë. :yes:
Àâòîð
Òåìà: Re: Êîíöåðò â Ðîêñ êëóáå 16 ìàÿ
Âðåìÿ: 06.05.2007 20:30 



>>Ñóäÿ ïî âñåìó - îí
>À êòî ýòî ?
Êàêîé-òî ïîõîäó îáäîëáàíûé ÷åë )
 ýòîò ôîðóì ìîãóò ïèñàòü òîëüêî çàðåãèñòðèðîâàííûå ïîëüçîâàòåëè!