妹子撒嬌的不同程序處理方法
作者:hypercross
各種語言程序員在面對(duì)妹子撒嬌的時(shí)候,都是如何面對(duì)的?還不來看看學(xué)習(xí)一下。
- Qt
- public void Hyper::妹子撒嬌()
- {
- this.哄((Yp)QObject::sender());
- }
- QObject::connect(yp, SIGNAL(撒嬌()),hyper,SLOT(妹子撒嬌());
- C#
- yp.撒嬌 += delegate{ hyper.哄(yp);};
- Java
- hyper.get撒嬌Manager().register(new 撒嬌Handler(){
- @Override
- public void on撒嬌(撒嬌Event event){
- try{
- if(event.source != yp)throw new
- Wrong妹子Exception();
- hyper.哄(event.source);
- }catch(Wrong妹子Exception e){
- try{
- hyper.keepCalm();
- }catch(CantKeepCalmException e)
- {
- hyper.call(yp);
- }
- }
- }
- });
- html
- <script type="text/javascript">
- function 求哄(妹子,漢子)
- {
- var yp = document.getElementById(妹子)
- var hyper = document.getElementById(漢子)
- hyper.哄(yp);
- }
- </script>
- <a id = "yp" type = "妹子" on撒嬌 = "求哄('yp','hyper')"/>
- <a id = "hyper" type = "漢子"/>
- jQuery
- $('#yp').撒嬌(function(){
- $('#hyper').哄($('#yp'));
- });
- Lua
- WithHyper = {
- __撒嬌 = function()
- hyper.哄(self)
- end,
- }
- setmetatable(yp, WithHyper)
- c/c++
- void (*漢子::on撒嬌)(撒嬌Source*);
- yp->on撒嬌 = &(Hyper::哄);
- yp->on撒嬌(yp);
其實(shí)我不懂c++
其實(shí)我家妹子撒嬌都不需要費(fèi)心思想怎么哄的
***的代碼,無非是
- /me smile
- /me hug yp
- >/////<
責(zé)任編輯:倪明
來源:
簡(jiǎn)書