多回头看看走过的路,做过的事,写过的程序,感觉一下他们有多烂
QNativeSocketEngine::write() was not called in QAbstractSocket::ConnectedState
在没有连接上服务端 发送数据会提示这个错误。
http://blog.csdn.net/vah101/article/details/5980070
staticintucstricmp(constushort*a,constushort*ae,constushort*b,constushort*be)
{
if(a==b)
return0;
if(a==0)
return1;
if(b==0)
return-1;
constushort*e=ae;
if(be-b<ae-a)
e=a+(be-b);
uintalast=0;
uintblast=0;
while(a!=e){
//qDebug()<<hex<<alast<<blast;
//qDebug()<<hex<<"*a="<<*a<<"alast="<<alast<<"folded="<<foldCase(*a,alast);
//qDebug()<<hex<<"*b="<<*b<<"blast="<<blast<<"folded="<<foldCase(*b,blast);
intdiff=foldCase(*a,alast)-foldCase(*b,blast);
if((diff))
returndiff;
++a;
++b;
}
if(a==ae){
if(b==be)
return0;
return-1;
}
return1;
}
不要因为某个技术流行而去用它,除非它确实能降低程序的复杂性。毕竟,软件开发的首要技术使命是控制复杂度,防止脑袋爆掉。
http://www.iteye.com/topic/736269
http://ting.baidu.com/song/430946
青春 -- 汪峰
作词 作曲 编曲 : 汪峰
专辑 :《花火》
我打算在黄昏的时候出发
搭一辆车去远方
今晚那儿有我友人的盛宴
我急忙穿好衣服推门而出
迎面扑来 是街上闷热的欲望
我轻轻一跃跳进人的河里
外面下起了小雨
雨滴轻飘飘的像我年轻的岁月
我脸上蒙着雨水
就像蒙着幸福
我心里什么都没有
就像没有痛苦
这个世界什么都有
就像每个人都拥有
继续走 继续失去
在我没有意识到的青春
继续走 继续失去
在我没有意识到的青春
外面下起了小雨
雨滴轻飘飘的像我年轻的岁月
我脸上蒙着雨水
就像蒙着幸福
我心里什么都没有
就像没有痛苦
这个世界什么都有
就像每个人都拥有